Get-AzResourceProvider
Mendapatkan penyedia sumber daya.
Sintaks
Get-AzResourceProvider
[-Location <String>]
[-ListAvailable]
[-ApiVersion <String>]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzResourceProvider
-ProviderNamespace <String[]>
[-Location <String>]
[-ApiVersion <String>]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzResourceProvider mendapatkan penyedia sumber daya Azure.
Contoh
Contoh 1: Dapatkan semua penyedia sumber daya yang terdaftar dengan langganan saat ini
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 : {}
...
Perintah ini mendapatkan semua penyedia sumber daya dari langganan.
Contoh 2: Mendapatkan semua detail penyedia sumber daya dari ProviderNamespace yang diberikan
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…}
...
Perintah ini Mendapatkan semua penyedia sumber daya di bawah "Microsoft.Compute".
Contoh 3: Mendapatkan semua detail penyedia sumber daya dari array ProviderNamespace yang diberikan
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…}
...
Perintah ini Mendapatkan semua penyedia sumber daya di bawah "Microsoft.Compute" dan "Microsoft.Network".
Parameter
-ApiVersion
Menentukan versi API yang didukung oleh Penyedia sumber daya. Anda dapat menentukan versi yang berbeda dari versi default.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure
Jenis: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ListAvailable
Menunjukkan bahwa operasi ini mendapatkan semua penyedia sumber daya yang tersedia.
Jenis: | SwitchParameter |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Location
Menentukan lokasi penyedia sumber daya.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Pre
Menunjukkan bahwa cmdlet ini mempertimbangkan versi API pra-rilis ketika secara otomatis menentukan versi mana yang akan digunakan.
Jenis: | SwitchParameter |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ProviderNamespace
Menentukan namespace penyedia sumber daya.
Jenis: | String[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
Input
String[]