您可以使用以下PowerShell檢查您的雲環境中是否存在服務。
Get-AzureRmResourceProvider
注意:您需要具有Azure PowerShell 1.0.0或更高版本。
在使用此命令之前,您需要登錄到Azure Cloud。
Login-AzureRmAccount
您將得到類似的輸出:
ProviderNamespace RegistrationState ResourceTypes Locations
----------------- ----------------- ------------- ---------
Microsoft.AppService Registered {apiapps, appIdentities, gateways, deploymenttemplates...} {East US, West US, South Central US, North Europe...}
Microsoft.Backup Registered {BackupVault} {West US, East US, North Europe, West Europe...}
Microsoft.Batch Registered {batchAccounts, operations, locations, locations/quotas} {West Europe, East US, East US 2, West US...}
Microsoft.ClassicCompute Registered {domainNames, checkDomainNameAvailability, domainNames/slots, domainNames/slots/roles...} {East Asia, Southeast Asia, East US, East US 2...}
Microsoft.ClassicNetwork Registered {virtualNetworks, reservedIps, quotas, gatewaySupportedDevices...} {East Asia, Southeast Asia, East US, East US 2...}
Microsoft.ClassicStorage Registered {storageAccounts, quotas, checkStorageAccountAvailability, storageAccounts/services...} {East Asia, Southeast Asia, East US, East US 2...}
Microsoft.Compute Registered {availabilitySets, virtualMachines, virtualMachines/extensions, virtualMachines/diagnosticSettings...} {East US, East US 2, West US, Central US...}
microsoft.insights Registered {components, webtests, queries, alertrules...} {Central US, West US, East US, North Europe...}
Microsoft.MobileEngagement Registered {appcollections, appcollections/apps, checkappcollectionnameavailability, supportedplatforms} {Central US, North Europe}
Microsoft.Network Registered {virtualNetworks, publicIPAddresses, networkInterfaces, loadBalancers...} {West US, East US, North Europe, West Europe...}
Microsoft.OperationalInsights Registered {workspaces, storageInsightConfigs, linkTargets, operations} {East US, West Europe}
Microsoft.Scheduler Registered {jobcollections, operations} {North Central US, South Central US, North Europe, West Europe...}
Microsoft.Sql Registered {operations, locations, locations/capabilities, checkNameAvailability...} {West Europe, South Central US, East US 2, Central US...}
Microsoft.Storage Registered {storageAccounts, operations, usages, checkNameAvailability...} {East US, East US 2, East US 2 (Stage), West US...}
Microsoft.Web Registered {sites/extensions, sites/slots/extensions, sites/instances, sites/slots/instances...} {Brazil South, East Asia, East US, Japan East...}
Microsoft.ADHybridHealthService Registered {services, addsservices, configuration, operations...} {West US}
Microsoft.Authorization Registered {roleAssignments, roleDefinitions, classicAdministrators, permissions...} {}
Microsoft.Features Registered {features, providers} {}
Microsoft.Resources Registered {subscriptions, subscriptions/providers, subscriptions/operationresults, resourceGroups...} {Central US, East Asia, Southeast Asia, East US...}
microsoft.support Registered {operations, supporttickets} {North Central US, South Central US, Central US, West Europe...}
microsoft.visualstudio Registered {account, account/project} {North Central US, South Central US, East US, West US...}
每個ProviderNamespace對應於一個大的服務,你可以在命名空間中使用以下命令查看詳細:
Get-AzureRmResourceProvider -ProviderNamespace Microsoft.AppService
注意:這個命令會給你所有AppService提供的資源類型。
某些服務未出現在此列表中。我不知道爲什麼。例如:
Get-AzureRmResourceProvider -ProviderNamespace Microsoft.HDInsight
Microsoft.HDInsight不在列表中。
,您可以得到更多的Get-AzureRmResourceProvider
https://en.wikipedia.org/wiki/DLL_Hell – tripdubroot