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

feat: Removed unused 'owner' metadata from templates including corresponding test #4046

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AlexanderSehr
Copy link
Contributor

@AlexanderSehr AlexanderSehr commented Dec 22, 2024

Description

  • Removed unused 'owner' metadata from templates including corresponding test
  • Regenerated all templates

Pipeline Reference

Pipeline
avm.res.analysis-services.server
avm.ptn.aca-lza.hosting-environment

Type of Change

  • Update to CI Environment or utilities (Non-module affecting changes)
  • Azure Verified Module updates:
    • Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in version.json:
      • Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description.
      • The bug was found by the module author, and no one has opened an issue to report it yet.
    • Feature update backwards compatible feature updates, and I have bumped the MINOR version in version.json.
    • Breaking changes and I have bumped the MAJOR version in version.json.
    • Update to documentation

@AlexanderSehr AlexanderSehr self-assigned this Dec 22, 2024
@AlexanderSehr AlexanderSehr added Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Needs: Core Team 🧞 This item needs the AVM Core Team to review it labels Dec 22, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 Maintainers need to triage still label Dec 22, 2024

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

Important

If this is a module-related PR, being submitted by the sole owner of the module, the AVM core team must review and approve it (as module owners can't approve their own PRs).

To indicate this PR needs the core team''s attention, apply the "Needs: Core Team 🧞" label!

The core team will only review and approve PRs that have this label applied!

@AlexanderSehr AlexanderSehr marked this pull request as ready for review December 22, 2024 14:09
@AlexanderSehr AlexanderSehr requested review from a team as code owners December 22, 2024 14:09
@AlexanderSehr AlexanderSehr requested review from a team as code owners December 22, 2024 14:09
@AlexanderSehr AlexanderSehr linked an issue Dec 22, 2024 that may be closed by this pull request
@@ -228,7 +227,7 @@
}
},
"variables": {
"$fxv#0": "{\n // Recommended abreviations: https://learn.microsoft.com/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations\n \"resourceTypeAbbreviations\" : {\n \"applicationGateway\": \"agw\",\n \"applicationInsights\": \"appi\",\n \"appService\": \"app\",\n \"azureFirewall\": \"azfw\",\n \"bastion\": \"bas\",\n \"containerAppsEnvironment\": \"cae\",\n \"containerRegistry\": \"cr\",\n \"cosmosDbNoSql\": \"cosno\",\n \"frontDoor\": \"afd\",\n \"frontDoorEndpoint\": \"fde\",\n \"frontDoorWaf\": \"fdfp\",\n \"keyVault\": \"kv\",\n \"logAnalyticsWorkspace\": \"log\",\n \"managedIdentity\": \"id\",\n \"networkInterface\": \"nic\",\n \"networkSecurityGroup\": \"nsg\",\n \"privateEndpoint\": \"pep\",\n \"privateLinkService\": \"pls\",\n \"publicIpAddress\": \"pip\",\n \"resourceGroup\": \"rg\",\n \"routeTable\": \"rt\",\n \"serviceBus\": \"sb\",\n \"serviceBusQueue\": \"sbq\",\n \"serviceBusTopic\": \"sbt\",\n \"storageAccount\": \"st\",\n \"virtualMachine\": \"vm\",\n \"virtualNetwork\": \"vnet\",\n \"redisCache\": \"redis\",\n \"cognitiveAccount\": \"cog\",\n \"openAiDeployment\": \"oaidep\",\n \"azureAISearch\": \"srch\",\n \"documentIntelligence\": \"di\",\n \"eventGridSystemTopic\": \"egst\",\n \"eventGridSubscription\": \"evgs\"\n },\n\n //copied from here: https://github.com/nianton/azure-naming/blob/main/datafiles/regionAbbreviations.json\n \"regionAbbreviations\" : {\n \"australiacentral\": \"auc\",\n \"australiacentral2\": \"auc2\",\n \"australiaeast\": \"aue\",\n \"australiasoutheast\": \"ause\",\n \"brazilsouth\": \"brs\",\n \"brazilsoutheast\": \"brse\",\n \"canadacentral\": \"canc\",\n \"canadaeast\": \"cane\",\n \"centralindia\": \"cin\",\n \"centralus\": \"cus\",\n \"centraluseuap\": \"cuseuap\",\n \"eastasia\": \"ea\",\n \"eastus\": \"eus\",\n \"eastus2\": \"eus2\",\n \"eastus2euap\": \"eus2euap\",\n \"francecentral\": \"frc\",\n \"francesouth\": \"frs\",\n \"germanynorth\": \"gern\",\n \"germanywestcentral\": \"gerwc\",\n \"japaneast\": \"jae\",\n \"japanwest\": \"jaw\",\n \"jioindiacentral\": \"jioinc\",\n \"jioindiawest\": \"jioinw\",\n \"koreacentral\": \"koc\",\n \"koreasouth\": \"kors\",\n \"northcentralus\": \"ncus\",\n \"northeurope\": \"neu\",\n \"norwayeast\": \"nore\",\n \"norwaywest\": \"norw\",\n \"southafricanorth\": \"san\",\n \"southafricawest\": \"saw\",\n \"southcentralus\": \"scus\",\n \"southeastasia\": \"sea\",\n \"southindia\": \"sin\",\n \"swedencentral\": \"swc\",\n \"switzerlandnorth\": \"swn\",\n \"switzerlandwest\": \"sww\",\n \"uaecentral\": \"uaec\",\n \"uaenorth\": \"uaen\",\n \"uksouth\": \"uks\",\n \"ukwest\": \"ukw\",\n \"westcentralus\": \"wcus\",\n \"westeurope\": \"weu\",\n \"westindia\": \"win\",\n \"westus\": \"wus\",\n \"westus2\": \"wus2\",\n \"westus3\": \"wus3\"\n }\n}",
"$fxv#0": "{\r\n // Recommended abreviations: https://learn.microsoft.com/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations\r\n \"resourceTypeAbbreviations\" : {\r\n \"applicationGateway\": \"agw\",\r\n \"applicationInsights\": \"appi\",\r\n \"appService\": \"app\",\r\n \"azureFirewall\": \"azfw\",\r\n \"bastion\": \"bas\",\r\n \"containerAppsEnvironment\": \"cae\",\r\n \"containerRegistry\": \"cr\",\r\n \"cosmosDbNoSql\": \"cosno\",\r\n \"frontDoor\": \"afd\",\r\n \"frontDoorEndpoint\": \"fde\",\r\n \"frontDoorWaf\": \"fdfp\",\r\n \"keyVault\": \"kv\",\r\n \"logAnalyticsWorkspace\": \"log\",\r\n \"managedIdentity\": \"id\",\r\n \"networkInterface\": \"nic\",\r\n \"networkSecurityGroup\": \"nsg\",\r\n \"privateEndpoint\": \"pep\",\r\n \"privateLinkService\": \"pls\",\r\n \"publicIpAddress\": \"pip\",\r\n \"resourceGroup\": \"rg\",\r\n \"routeTable\": \"rt\",\r\n \"serviceBus\": \"sb\",\r\n \"serviceBusQueue\": \"sbq\",\r\n \"serviceBusTopic\": \"sbt\",\r\n \"storageAccount\": \"st\",\r\n \"virtualMachine\": \"vm\",\r\n \"virtualNetwork\": \"vnet\",\r\n \"redisCache\": \"redis\",\r\n \"cognitiveAccount\": \"cog\",\r\n \"openAiDeployment\": \"oaidep\",\r\n \"azureAISearch\": \"srch\",\r\n \"documentIntelligence\": \"di\",\r\n \"eventGridSystemTopic\": \"egst\",\r\n \"eventGridSubscription\": \"evgs\"\r\n },\r\n\r\n //copied from here: https://github.com/nianton/azure-naming/blob/main/datafiles/regionAbbreviations.json\r\n \"regionAbbreviations\" : {\r\n \"australiacentral\": \"auc\",\r\n \"australiacentral2\": \"auc2\",\r\n \"australiaeast\": \"aue\",\r\n \"australiasoutheast\": \"ause\",\r\n \"brazilsouth\": \"brs\",\r\n \"brazilsoutheast\": \"brse\",\r\n \"canadacentral\": \"canc\",\r\n \"canadaeast\": \"cane\",\r\n \"centralindia\": \"cin\",\r\n \"centralus\": \"cus\",\r\n \"centraluseuap\": \"cuseuap\",\r\n \"eastasia\": \"ea\",\r\n \"eastus\": \"eus\",\r\n \"eastus2\": \"eus2\",\r\n \"eastus2euap\": \"eus2euap\",\r\n \"francecentral\": \"frc\",\r\n \"francesouth\": \"frs\",\r\n \"germanynorth\": \"gern\",\r\n \"germanywestcentral\": \"gerwc\",\r\n \"japaneast\": \"jae\",\r\n \"japanwest\": \"jaw\",\r\n \"jioindiacentral\": \"jioinc\",\r\n \"jioindiawest\": \"jioinw\",\r\n \"koreacentral\": \"koc\",\r\n \"koreasouth\": \"kors\",\r\n \"northcentralus\": \"ncus\",\r\n \"northeurope\": \"neu\",\r\n \"norwayeast\": \"nore\",\r\n \"norwaywest\": \"norw\",\r\n \"southafricanorth\": \"san\",\r\n \"southafricawest\": \"saw\",\r\n \"southcentralus\": \"scus\",\r\n \"southeastasia\": \"sea\",\r\n \"southindia\": \"sin\",\r\n \"swedencentral\": \"swc\",\r\n \"switzerlandnorth\": \"swn\",\r\n \"switzerlandwest\": \"sww\",\r\n \"uaecentral\": \"uaec\",\r\n \"uaenorth\": \"uaen\",\r\n \"uksouth\": \"uks\",\r\n \"ukwest\": \"ukw\",\r\n \"westcentralus\": \"wcus\",\r\n \"westeurope\": \"weu\",\r\n \"westindia\": \"win\",\r\n \"westus\": \"wus\",\r\n \"westus2\": \"wus2\",\r\n \"westus3\": \"wus3\"\r\n }\r\n}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this change intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess so. I only regenerated the json files

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please test static on this one before merge?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on it

Copy link
Contributor Author

@AlexanderSehr AlexanderSehr Dec 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attached a batch. Mind you however it will be red as the PSRule tests, much like the Balrog, currently do not pass

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, if I recall correctly, this is. Windows vs Linux issue, where you get two different results. Have seen this before somewhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And confirmed. Just re-ran it from the WSL:
image

These line endings will be our downfall

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, passes @eriqua
I guess we'll have to look into the settings.json vs extension.json files eventually to make sense of them. Last time I tried (easily half a year ago) I failed and no configuration seemed to affect how bicep renders the line endings.

@AlexanderSehr AlexanderSehr requested a review from a team as a code owner December 22, 2024 20:12
@AlexanderSehr AlexanderSehr requested a review from eriqua December 22, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Core Team 🧞 This item needs the AVM Core Team to review it Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All-modules: Remove 'owner' from module metadata
3 participants