Skip to content

Instantly share code, notes, and snippets.

@shibayan
Last active January 29, 2024 11:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shibayan/e37307ba05a91cac884872505a4625f6 to your computer and use it in GitHub Desktop.
Save shibayan/e37307ba05a91cac884872505a4625f6 to your computer and use it in GitHub Desktop.
Script to bulk register frequently used Resource Providers with an Azure subscription
#!/bin/sh
resourceProviders=(\
"Microsoft.ApiManagement" \
"Microsoft.AppPlatform" \
"Microsoft.Authorization" \
"Microsoft.Automation" \
"Microsoft.AVS" \
"Microsoft.Blueprint" \
"Microsoft.BotService" \
"Microsoft.Cache" \
"Microsoft.Cdn" \
"Microsoft.CognitiveServices" \
"Microsoft.Compute" \
"Microsoft.ContainerInstance" \
"Microsoft.ContainerRegistry" \
"Microsoft.ContainerService" \
"Microsoft.CostManagement" \
"Microsoft.CustomProviders" \
"Microsoft.Databricks" \
"Microsoft.DataLakeAnalytics" \
"Microsoft.DataLakeStore" \
"Microsoft.DataMigration" \
"Microsoft.DataProtection" \
"Microsoft.DBforMariaDB" \
"Microsoft.DBforMySQL" \
"Microsoft.DBforPostgreSQL" \
"Microsoft.DesktopVirtualization" \
"Microsoft.Devices" \
"Microsoft.DevTestLab" \
"Microsoft.DocumentDB" \
"Microsoft.EventGrid" \
"Microsoft.EventHub" \
"Microsoft.HDInsight" \
"Microsoft.HealthcareApis" \
"Microsoft.GuestConfiguration" \
"Microsoft.KeyVault" \
"Microsoft.Kusto" \
"microsoft.insights" \
"Microsoft.Logic" \
"Microsoft.MachineLearningServices" \
"Microsoft.Maintenance" \
"Microsoft.ManagedIdentity" \
"Microsoft.ManagedServices" \
"Microsoft.Management" \
"Microsoft.Maps" \
"Microsoft.MarketplaceOrdering" \
"Microsoft.Media" \
"Microsoft.MixedReality" \
"Microsoft.Network" \
"Microsoft.NotificationHubs" \
"Microsoft.OperationalInsights" \
"Microsoft.OperationsManagement" \
"Microsoft.PolicyInsights" \
"Microsoft.PowerBIDedicated" \
"Microsoft.Relay" \
"Microsoft.RecoveryServices" \
"Microsoft.Resources" \
"Microsoft.Search" \
"Microsoft.Security" \
"Microsoft.SecurityInsights" \
"Microsoft.ServiceBus" \
"Microsoft.ServiceFabric" \
"Microsoft.Sql" \
"Microsoft.Storage" \
"Microsoft.StreamAnalytics" \
"Microsoft.TimeSeriesInsights" \
"Microsoft.Web" \
)
for provider in ${resourceProviders[@]}; do
az provider register --namespace $provider
done
@shibayan
Copy link
Author

curl https://gist.githubusercontent.com/shibayan/e37307ba05a91cac884872505a4625f6/raw/resource-providers.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment