Last active
August 27, 2024 07:49
-
-
Save shibayan/e37307ba05a91cac884872505a4625f6 to your computer and use it in GitHub Desktop.
Script to bulk register frequently used Resource Providers with an Azure subscription
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
resourceProviders=(\ | |
"Github.Network" \ | |
"Microsoft.AVS" \ | |
"Microsoft.AlertsManagement" \ | |
"Microsoft.ApiManagement" \ | |
"Microsoft.AppConfiguration" \ | |
"Microsoft.AppPlatform" \ | |
"Microsoft.Authorization" \ | |
"Microsoft.Automation" \ | |
"Microsoft.Blueprint" \ | |
"Microsoft.BotService" \ | |
"Microsoft.Cache" \ | |
"Microsoft.Cdn" \ | |
"Microsoft.CognitiveServices" \ | |
"Microsoft.Compute" \ | |
"Microsoft.ContainerInstance" \ | |
"Microsoft.ContainerRegistry" \ | |
"Microsoft.ContainerService" \ | |
"Microsoft.CostManagement" \ | |
"Microsoft.CustomProviders" \ | |
"Microsoft.DBforMySQL" \ | |
"Microsoft.DBforPostgreSQL" \ | |
"Microsoft.Dashboard" \ | |
"Microsoft.DataFactory" \ | |
"Microsoft.DataLakeAnalytics" \ | |
"Microsoft.DataLakeStore" \ | |
"Microsoft.DataMigration" \ | |
"Microsoft.DataProtection" \ | |
"Microsoft.Databricks" \ | |
"Microsoft.DesktopVirtualization" \ | |
"Microsoft.DevTestLab" \ | |
"Microsoft.Devices" \ | |
"Microsoft.DocumentDB" \ | |
"Microsoft.EventGrid" \ | |
"Microsoft.EventHub" \ | |
"Microsoft.GuestConfiguration" \ | |
"Microsoft.HDInsight" \ | |
"Microsoft.HealthcareApis" \ | |
"Microsoft.IoTCentral" \ | |
"Microsoft.KeyVault" \ | |
"Microsoft.Kusto" \ | |
"Microsoft.Logic" \ | |
"Microsoft.MachineLearningServices" \ | |
"Microsoft.Maintenance" \ | |
"Microsoft.ManagedIdentity" \ | |
"Microsoft.ManagedServices" \ | |
"Microsoft.Management" \ | |
"Microsoft.Maps" \ | |
"Microsoft.MarketplaceOrdering" \ | |
"Microsoft.MixedReality" \ | |
"Microsoft.Monitor" \ | |
"Microsoft.Network" \ | |
"Microsoft.NotificationHubs" \ | |
"Microsoft.OperationalInsights" \ | |
"Microsoft.OperationsManagement" \ | |
"Microsoft.PolicyInsights" \ | |
"Microsoft.PowerBIDedicated" \ | |
"Microsoft.RecoveryServices" \ | |
"Microsoft.Relay" \ | |
"Microsoft.Resources" \ | |
"Microsoft.Search" \ | |
"Microsoft.Security" \ | |
"Microsoft.SecurityInsights" \ | |
"Microsoft.ServiceBus" \ | |
"Microsoft.ServiceFabric" \ | |
"Microsoft.SignalRService" \ | |
"Microsoft.Sql" \ | |
"Microsoft.Storage" \ | |
"Microsoft.StreamAnalytics" \ | |
"Microsoft.Web" \ | |
"microsoft.insights" \ | |
) | |
for provider in ${resourceProviders[@]}; do | |
az provider register --namespace $provider | |
done |
Author
shibayan
commented
Mar 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment