Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

justinyoo
Copy link

@justinyoo justinyoo commented May 23, 2024

This PR is to:

  • Add dependencies between modules
  • Remove default APIM location value so that devs choose their own location.
  • Add pwsh scripts to purge AOAI and APIM instances

- 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: [
Copy link
Contributor

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: [
Copy link
Contributor

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: [
Copy link
Contributor

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: [
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants