Get-AzResourceProvider
Obtiene un proveedor de recursos.
Sintaxis
Get-AzResourceProvider
[-Location <String>]
[-ListAvailable]
[-ApiVersion <String>]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzResourceProvider
-ProviderNamespace <String[]>
[-Location <String>]
[-ApiVersion <String>]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
El cmdlet Get-AzResourceProvider obtiene un proveedor de recursos de Azure.
Ejemplos
Ejemplo 1: Obtención de todos los proveedores de recursos registrados con la suscripción actual
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 : {}
...
Este comando obtiene todos los proveedores de recursos de la suscripción.
Ejemplo 2: Obtención de todos los detalles del proveedor de recursos del objeto ProviderNamespace especificado
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…}
...
Este comando Obtiene todos los proveedores de recursos en "Microsoft.Compute".
Ejemplo 3: Obtención de todos los detalles del proveedor de recursos de la matriz ProviderNamespace especificada
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…}
...
Este comando Obtiene todos los proveedores de recursos en "Microsoft.Compute" y "Microsoft.Network".
Parámetros
-ApiVersion
Especifica la versión de API compatible con el proveedor de recursos. Puede especificar una versión diferente de la versión predeterminada.
Tipo: | String |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-DefaultProfile
Las credenciales, la cuenta, el inquilino y la suscripción que se usan para la comunicación con Azure
Tipo: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-ListAvailable
Indica que esta operación obtiene todos los proveedores de recursos disponibles.
Tipo: | SwitchParameter |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-Location
Especifica la ubicación del proveedor de recursos.
Tipo: | String |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-Pre
Indica que este cmdlet considera las versiones de API de versión preliminar cuando determina automáticamente qué versión se va a usar.
Tipo: | SwitchParameter |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | False |
Aceptar entrada de canalización: | False |
Aceptar caracteres comodín: | False |
-ProviderNamespace
Especifica el espacio de nombres del proveedor de recursos.
Tipo: | String[] |
Posición: | Named |
Valor predeterminado: | None |
Requerido: | True |
Aceptar entrada de canalización: | True |
Aceptar caracteres comodín: | False |
Entradas
String[]