Skip to content

Update azd templates#14

Open
justinyoo wants to merge 1 commit into
Azure-Samples:mainfrom
justinyoo:feature/dependson
Open

Update azd templates#14
justinyoo wants to merge 1 commit into
Azure-Samples:mainfrom
justinyoo:feature/dependson

Conversation

@justinyoo

@justinyoo justinyoo commented May 23, 2024

Copy link
Copy Markdown

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
Comment thread infra/main.bicep
module api 'app/apim-api.bicep' = {
name: 'api'
scope: resourceGroup
dependsOn: [

Copy link
Copy Markdown
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

Comment thread infra/main.bicep
module apim 'core/gateway/apim.bicep' = {
name: 'apim'
scope: resourceGroup
dependsOn: [

Copy link
Copy Markdown
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

Comment thread infra/main.bicep
module openAi1RoleApim 'core/security/role.bicep' = {
scope: resourceGroup
name: 'openai1-role-apim'
dependsOn: [

Copy link
Copy Markdown
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

Comment thread infra/main.bicep
module openAi2RoleApim 'core/security/role.bicep' = {
scope: resourceGroup
name: 'openai2-role-apim'
dependsOn: [

Copy link
Copy Markdown
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