azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

Update the infra/core modules to AVM modules

Open dotnet-7 opened this issue 1 year ago • 10 comments

Update the infra/core modules to AVM modules for todo-nodejs-mongo.

1. Modules not replaced by AVM

  • Cosmos DB: Missing the feature Microsoft.KeyVault/vaults/secrets and the output connectionStringKey, so we cannot store the connection string into keyvault. AVM issue link: https://github.com/Azure/bicep-registry-modules/issues/632

  • Monitoring (app insights) : Missing the feature Microsoft.Portal/dashboards and the output applicationInsights.properties.ConnectionString. AVM issue link: https://github.com/Azure/bicep-registry-modules/issues/1130

  • APIM: Missing features Microsoft.ApiManagement/service/loggers, Microsoft.ApiManagement/service/apis/diagnostics. AVM issue link: https://github.com/Azure/bicep-registry-modules/issues/1124

2. Modules replaced by AVM

  • App Service
  • Key Vault
  • App Service Plan

@jongio for notification.

dotnet-7 avatar Feb 29 '24 09:02 dotnet-7

/azp run azure-dev - repoman

vhvb1989 avatar Feb 29 '24 19:02 vhvb1989

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Feb 29 '24 19:02 azure-pipelines[bot]

I have no issue adopting AVM and migrating away from our home grown core modules. If we move forward we should update all the templates and deprecate the core modules.

One way to approach this would be to PR into a feature branch and then merge the feature branch back into main when these updates are completed.

Repoman does the branch on each template automatically. Shouldn't it be a duplication to branch azure-dev as well? Keep in mind that we are updating the todo-templates, while the core modules are still available for anyone from the repo. We can keep those around for a while

vhvb1989 avatar Mar 01 '24 05:03 vhvb1989

Please try to make this work without any modules from infra/core. I want to see what all the gaps look like

jongio avatar Mar 08 '24 22:03 jongio

@jongio I have updated the code, please review.

There are two questions that need to be clarified:

  1. For applicationInsightsDashboard, Microsoft.ApiManagement/service/loggers and Microsoft.ApiManagement/service/apis/diagnostics, since it was not implemented in AVM, we have retained the original implementation.
  2. Remove apim service sku config. For Consumption SKU Type capacity must be specified as 0, but in AVM , only 1 and 2 are allowed: https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/api-management/service/main.bicep#L68
  3. For cosmosConnectString, we store in keyVault by listConnectionStrings(resourceId, '2022-08-15').connectionStrings[0].connectionString

v-jiaodi avatar Mar 13 '24 10:03 v-jiaodi

/azp run azure-dev - repoman

v-xuto avatar Mar 15 '24 03:03 v-xuto

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Mar 15 '24 03:03 azure-pipelines[bot]

@jongio I have updated the code, please review.

There are two questions that need to be clarified:

  1. For applicationInsightsDashboard, Microsoft.ApiManagement/service/loggers and Microsoft.ApiManagement/service/apis/diagnostics, since it was not implemented in AVM, we have retained the original implementation.
  2. Remove apim service sku config. For Consumption SKU Type capacity must be specified as 0, but in AVM , only 1 and 2 are allowed: https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/api-management/service/main.bicep#L68
  3. For cosmosConnectString, we store in keyVault by listConnectionStrings(resourceId, '2022-08-15').connectionStrings[0].connectionString

Can you please reference the issues that we have filed for each of the above?

jongio avatar Mar 26 '24 19:03 jongio

@jongio

  1. Monitoring (app insights) : Missing the feature Microsoft.Portal/dashboards, since it was not implemented in AVM, we have retained the original implementation. https://github.com/Azure/bicep-registry-modules/issues/1130
  2. APIM: Missing features Microsoft.ApiManagement/service/loggers and Microsoft.ApiManagement/service/apis/diagnostics. https://github.com/Azure/bicep-registry-modules/issues/1124

v-jiaodi avatar Mar 28 '24 07:03 v-jiaodi

/azp run azure-dev - repoman

v-xuto avatar May 29 '24 03:05 v-xuto

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar May 29 '24 03:05 azure-pipelines[bot]

/azp run azure-dev - repoman

v-xuto avatar May 30 '24 02:05 v-xuto

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar May 30 '24 02:05 azure-pipelines[bot]

Repoman Generation Results

Repoman pushed changes to remotes for the following projects:

Project: todo-nodejs-mongo

Remote: azure-samples-staging

Branch: pr/3454

You can initialize this project with:

azd init -t Azure-Samples/todo-nodejs-mongo -b pr/3454

View Changes | Compare Changes


azure-sdk avatar May 30 '24 02:05 azure-sdk