Get-AzResourceProvider  
	リソース プロバイダーを取得します。
構文
		ListAvailable (既定)
	 
	Get-AzResourceProvider
    [-Location <String>]
    [-ListAvailable]
    [-ApiVersion <String>]
    [-Pre]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]
	
		IndividualProvider
	 
	Get-AzResourceProvider
    -ProviderNamespace <String[]>
    [-Location <String>]
    [-ApiVersion <String>]
    [-Pre]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]
	説明
Get-AzResourceProvider コマンドレットは、Azure リソース プロバイダーを取得します。
例
例 1: 現在のサブスクリプションに登録されているすべてのリソース プロバイダーを取得する
Get-AzResourceProvider
ProviderNamespace : Microsoft.AppConfiguration
RegistrationState : Registered
ResourceTypes     : {configurationStores, configurationStores/eventGridFilters, checkNameAvailability, locations…}
Locations         : {West Central US, Central US, West US, East US…}
ProviderNamespace : Microsoft.KeyVault
RegistrationState : Registered
ResourceTypes     : {vaults, vaults/secrets, vaults/accessPolicies, operations…}
Locations         : {North Central US, East US, North Europe, West Europe…}
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes     : {virtualNetworks, publicIPAddresses, networkInterfaces, privateEndpoints…}
Locations         : {West US, East US, North Europe, West Europe…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {availabilitySets, virtualMachines, virtualMachines/extensions, virtualMachineScaleSets…}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Security
RegistrationState : Registered
ResourceTypes     : {operations, securityStatuses, tasks, regulatoryComplianceStandards…}
Locations         : {Central US, East US, West Europe, West Central US…}
ProviderNamespace : Microsoft.ResourceHealth
RegistrationState : Registered
ResourceTypes     : {availabilityStatuses, childAvailabilityStatuses, childResources, events…}
Locations         : {Australia Southeast}
ProviderNamespace : Microsoft.PolicyInsights
RegistrationState : Registered
ResourceTypes     : {policyEvents, policyStates, operations, asyncOperationResults…}
Locations         : {}
ProviderNamespace : Microsoft.Storage
RegistrationState : Registered
ResourceTypes     : {storageAccounts, operations, locations/asyncoperations, storageAccounts/listAccountSas…}
Locations         : {East US, East US 2, West US, West Europe…}
ProviderNamespace : Microsoft.Web
RegistrationState : Registered
ResourceTypes     : {publishingUsers, ishostnameavailable, validate, isusernameavailable…}
Locations         : {Central US, North Europe, West Europe, Southeast Asia…}
ProviderNamespace : Sendgrid.Email
RegistrationState : Registered
ResourceTypes     : {accounts, operations}
Locations         : {Australia East, Australia Southeast, Brazil South, Canada Central…}
ProviderNamespace : Microsoft.Authorization
RegistrationState : Registered
ResourceTypes     : {roleAssignments, roleDefinitions, classicAdministrators, permissions…}
Locations         : {}
...
このコマンドは、サブスクリプションからすべてのリソース プロバイダーを取得します。
例 2: 指定された ProviderNamespace からすべてのリソース プロバイダーの詳細を取得する 
	Get-AzResourceProvider -ProviderNamespace Microsoft.Compute
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {availabilitySets}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachines}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachines/extensions}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachineScaleSets}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachineScaleSets/extensions}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachineScaleSets/virtualMachines}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachineScaleSets/networkInterfaces}
Locations         : {East US, East US 2, West US, Central US…}
...
このコマンドは、"Microsoft.Compute" のすべてのリソース プロバイダーを取得します。
例 3: 指定された ProviderNamespace 配列からすべてのリソース プロバイダーの詳細を取得する 
	Get-AzResourceProvider -ProviderNamespace Microsoft.Compute,Microsoft.Network
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {availabilitySets}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachines}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachines/extensions}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachineScaleSets}
Locations         : {East US, East US 2, West US, Central US…}
ProviderNamespace : Microsoft.Compute
RegistrationState : Registered
ResourceTypes     : {virtualMachineScaleSets/extensions}
Locations         : {East US, East US 2, West US, Central US…}
...
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes     : {virtualNetworks}
Locations         : {West US, East US, North Europe, West Europe…}
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes     : {publicIPAddresses}
Locations         : {West US, East US, North Europe, West Europe…}
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes     : {networkInterfaces}
Locations         : {West US, East US, North Europe, West Europe…}
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes     : {privateEndpoints}
Locations         : {West US, East US, North Europe, West Europe…}
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes     : {privateEndpointRedirectMaps}
Locations         : {West US, East US, North Europe, West Europe…}
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes     : {loadBalancers}
Locations         : {West US, East US, North Europe, West Europe…}
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes     : {networkSecurityGroups}
Locations         : {West US, East US, North Europe, West Europe…}
...
このコマンドは、"Microsoft.Compute" および "Microsoft.Network" のすべてのリソース プロバイダーを取得します。
例 4: 特定のリソースの種類の既定の API バージョンを取得する
$crp = Get-AzResourceProvider -ProviderNamespace "Microsoft.Compute"
$crp.ResourceTypes | Where-Object { $_.ResourceTypeName -eq "disks" }
ResourceTypeName  : disks
Locations         : {Southeast Asia, East US 2, Central US, West Europe…}
ApiVersions       : {2024-03-02, 2023-10-02, 2023-04-02, 2023-01-02…}
DefaultApiVersion : 2022-03-02
特定のリソースの種類の既定の API バージョンを取得するには、まずリソース プロバイダーを取得してから、リソースの種類を名前でフィルター処理します。
パラメーター
-ApiVersion 
		リソース プロバイダーでサポートされている API バージョンを指定します。 既定のバージョンとは異なるバージョンを指定できます。
パラメーターのプロパティ
| 型: | String | 
| 規定値: | None | 
| ワイルドカードのサポート: | False | 
| DontShow: | False | 
パラメーター セット
(All)
| 配置: | Named | 
| 必須: | False | 
| パイプラインからの値: | False | 
| プロパティ名別のパイプラインからの値: | False | 
| 残りの引数からの値: | False | 
-DefaultProfile 
		Azure との通信に使用される資格情報、アカウント、テナント、サブスクリプション
パラメーターのプロパティ
| 型: | IAzureContextContainer | 
| 規定値: | None | 
| ワイルドカードのサポート: | False | 
| DontShow: | False | 
| Aliases: | AzContext, AzureRmContext, AzureCredential | 
パラメーター セット
(All)
| 配置: | Named | 
| 必須: | False | 
| パイプラインからの値: | False | 
| プロパティ名別のパイプラインからの値: | False | 
| 残りの引数からの値: | False | 
-ListAvailable 
		この操作が使用可能なすべてのリソース プロバイダーを取得することを示します。
パラメーターのプロパティ
| 型: | SwitchParameter | 
| 規定値: | None | 
| ワイルドカードのサポート: | False | 
| DontShow: | False | 
パラメーター セット
					ListAvailable 
					
				 
				| 配置: | Named | 
| 必須: | False | 
| パイプラインからの値: | False | 
| プロパティ名別のパイプラインからの値: | False | 
| 残りの引数からの値: | False | 
-Location
リソース プロバイダーの場所を指定します。
パラメーターのプロパティ
| 型: | String | 
| 規定値: | None | 
| ワイルドカードのサポート: | False | 
| DontShow: | False | 
パラメーター セット
(All)
| 配置: | Named | 
| 必須: | False | 
| パイプラインからの値: | False | 
| プロパティ名別のパイプラインからの値: | False | 
| 残りの引数からの値: | False | 
-Pre
このコマンドレットは、使用するバージョンを自動的に決定するときに、プレリリース API バージョンを考慮することを示します。
パラメーターのプロパティ
| 型: | SwitchParameter | 
| 規定値: | None | 
| ワイルドカードのサポート: | False | 
| DontShow: | False | 
パラメーター セット
(All)
| 配置: | Named | 
| 必須: | False | 
| パイプラインからの値: | False | 
| プロパティ名別のパイプラインからの値: | False | 
| 残りの引数からの値: | False | 
-ProviderNamespace 
		リソース プロバイダーの名前空間を指定します。
パラメーターのプロパティ
| 型: | String[]  | 
| 規定値: | None | 
| ワイルドカードのサポート: | False | 
| DontShow: | False | 
パラメーター セット
					IndividualProvider 
					
				 
				| 配置: | Named | 
| 必須: | True | 
| パイプラインからの値: | False | 
| プロパティ名別のパイプラインからの値: | True | 
| 残りの引数からの値: | False | 
CommonParameters
このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。