-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code Bicep Extension marks module references to private registries as errors. #15843
Comments
Is the private registry something you authenticate to? Wondering if this may be related to #15403 |
yes, the private registry I use is an azure container registry. I authenticate using Azure CLI and my user. |
#15403 shouldn't affect module restoration. I'm not seeing this issue in 0.32, at least not on Mac. @Steviestevson it sounds like it's not finding the bicepconfig.json file. The error message should say "The OCI artifact module alias name "redacted" does not exist in the Bicep configuration "/user/path/bicepconfig.json" if it's finding the bicepconfig.json. Where is the bicepconfig.json in relation to your bicep file? It should find it in any parent folder. |
Hey @StephenWeatherford ! sorry for late response. My bicepconfig.json is living in the same folder as my deplyoment and param files. |
@StephenWeatherford It does not matter where the bicepconfig file is saved. I also tried recreating the file from the VS Code dialogue. When using literal paths to my modules, no error arise. |
@StephenWeatherford The error seems to be connected to the pathing (name of the repo). The name of the repo includes a 'space' (%20). Might be related to #11469? When I move the files to a path without a 'space' - everything works fine |
@Steviestevson Great observation. Adding @shenglol who was doing some engineering work around our use of file path URIs. Otherwise I can take a look week after next. |
Bicep version
VS Code Bicep Extension v0.32.4
Describe the bug
Ever since I use v032.4 all my module references to my private registry are shown as errors. The module references show as
The OCI artifact module alias name "redacted" does not exist in the built-in Bicep configuration.bicep[BCP213]
My module reference is looking like this:
To Reproduce
Steps to reproduce the behavior: Update the bicep extension to v0.32.4
Additional context
Downgrading the extension to v0.31.92 fixes the errors.
The text was updated successfully, but these errors were encountered: