Skip to content

Instantly share code, notes, and snippets.

@shibayan
Last active August 27, 2024 07:49
Show Gist options
  • 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=(\
"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
@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