Created
October 9, 2024 21:28
-
-
Save colbylwilliams/c89158483dd5aa255d3024a401541875 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import subprocess | |
subs = [ | |
'00000000-0000-0000-0000-000000000000', # Subscription 1 | |
'00000000-0000-0000-0000-000000000000', # Subscription 2 | |
] | |
providers = [ | |
'Microsoft.ContainerInstance', | |
'Microsoft.Web', | |
'microsoft.insights', | |
'Microsoft.MixedReality', | |
'Microsoft.OperationalInsights', | |
'Microsoft.DataLakeAnalytics', | |
'Microsoft.Maintenance', | |
'Microsoft.BotService', | |
'Microsoft.OperationsManagement', | |
'Microsoft.RecoveryServices', | |
'Microsoft.DataLakeStore', | |
'Microsoft.EventHub', | |
'Microsoft.ServiceBus', | |
'Microsoft.Kusto', | |
'Microsoft.HealthcareApis', | |
'Microsoft.Devices', | |
'Microsoft.Media', | |
'Microsoft.Compute', | |
'Microsoft.PowerBIDedicated', | |
'Microsoft.Relay', | |
'Microsoft.Management', | |
'Microsoft.CognitiveServices', | |
'Microsoft.Cdn', | |
'Microsoft.DocumentDB', | |
'Microsoft.DBforPostgreSQL', | |
'Microsoft.CustomProviders', | |
'Microsoft.Databricks', | |
'Microsoft.ContainerService', | |
'Microsoft.Cache', | |
'Microsoft.Maps', | |
'Microsoft.DesktopVirtualization', | |
'Microsoft.Blueprint', | |
'Microsoft.ContainerRegistry', | |
'Microsoft.DevTestLab', | |
'Microsoft.ApiManagement', | |
'Microsoft.Search', | |
'Microsoft.StreamAnalytics', | |
'Microsoft.HDInsight', | |
'Microsoft.ManagedServices', | |
'Microsoft.DataMigration', | |
'Microsoft.DataProtection', | |
'Microsoft.AppPlatform', | |
'Microsoft.SecurityInsights', | |
'Microsoft.AVS', | |
'Microsoft.Automation', | |
'Microsoft.ServiceFabric', | |
'Microsoft.ServiceFabricMesh', | |
'Microsoft.DBforMariaDB', | |
'Microsoft.EventGrid', | |
'Microsoft.DBforMySQL', | |
'Microsoft.TimeSeriesInsights', | |
'Microsoft.NotificationHubs', | |
'Microsoft.Logic', | |
'Microsoft.MachineLearningServices', | |
'Microsoft.Network', | |
'Microsoft.Sql', | |
'Microsoft.App', | |
'Microsoft.ManagedIdentity', | |
'Microsoft.KeyVault', | |
'Microsoft.ChangeAnalysis', | |
'Microsoft.AlertsManagement', | |
'Microsoft.Advisor', | |
'Microsoft.ResourceHealth', | |
'Microsoft.VirtualMachineImages', | |
'Microsoft.DevCenter', | |
'Microsoft.Diagnostics', | |
'Microsoft.AppConfiguration', | |
'Microsoft.ServiceLinker', | |
'Microsoft.Security', | |
'Microsoft.Storage', | |
'Microsoft.GuestConfiguration', | |
'Microsoft.PolicyInsights', | |
'Microsoft.MarketplaceNotifications', | |
'Microsoft.EventGrid' | |
] | |
for sub in subs: | |
print(f'Working on {sub}') | |
for provider in providers: | |
print(f'..Registering {provider}') | |
subprocess.run(['az', 'provider', 'register', '--subscription', sub, '--namespace', provider]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment