-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update azd templates #14
base: main
Are you sure you want to change the base?
Conversation
- Add dependencies between modules - Add pwsh scripts to purge AOAI and APIM instances
@@ -123,6 +126,9 @@ module apim 'core/gateway/apim.bicep' = { | |||
module api 'app/apim-api.bicep' = { | |||
name: 'api' | |||
scope: resourceGroup | |||
dependsOn: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed, as there are already params depending on both these resources. Bicep linter should report it
@@ -108,6 +108,9 @@ module openAi2 'core/ai/cognitiveservices.bicep' = { | |||
module apim 'core/gateway/apim.bicep' = { | |||
name: 'apim' | |||
scope: resourceGroup | |||
dependsOn: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not be needed, only the child API created on this APIM requires the dependencies
@@ -156,6 +162,9 @@ module monitoring 'core/monitor/monitoring.bicep' = { | |||
module openAi1RoleApim 'core/security/role.bicep' = { | |||
scope: resourceGroup | |||
name: 'openai1-role-apim' | |||
dependsOn: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed, apim is automatically recognized as a dependency because of the param.
There's no dependency on openAi1 as the role is set at RG scope
@@ -171,6 +180,9 @@ module openAi1RoleApim 'core/security/role.bicep' = { | |||
module openAi2RoleApim 'core/security/role.bicep' = { | |||
scope: resourceGroup | |||
name: 'openai2-role-apim' | |||
dependsOn: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed, apim is automatically recognized as a dependency because of the param.
There's no dependency on openAi1 as the role is set at RG scope
Since the scope has change to RG, this second one role is redundant
This PR is to: