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>]
Description
Get-AzResourceProvider cmdlet은 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 |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
매개 변수 집합
(All)
| Position: | Named |
| 필수: | False |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | False |
| 나머지 인수의 값: | False |
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독
매개 변수 속성
| 형식: | IAzureContextContainer |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
| 별칭: | AzContext, AzureRmContext, AzureCredential |
매개 변수 집합
(All)
| Position: | Named |
| 필수: | False |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | False |
| 나머지 인수의 값: | False |
-ListAvailable
이 작업은 사용 가능한 모든 리소스 공급자를 가져옵니다.
매개 변수 속성
| 형식: | SwitchParameter |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
매개 변수 집합
ListAvailable
| Position: | Named |
| 필수: | False |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | False |
| 나머지 인수의 값: | False |
-Location
리소스 공급자의 위치를 지정합니다.
매개 변수 속성
| 형식: | String |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
매개 변수 집합
(All)
| Position: | Named |
| 필수: | False |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | False |
| 나머지 인수의 값: | False |
-Pre
이 cmdlet은 사용할 버전을 자동으로 결정할 때 시험판 API 버전을 고려한다는 것을 나타냅니다.
매개 변수 속성
| 형식: | SwitchParameter |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
매개 변수 집합
(All)
| Position: | Named |
| 필수: | False |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | False |
| 나머지 인수의 값: | False |
-ProviderNamespace
리소스 공급자의 네임스페이스를 지정합니다.
매개 변수 속성
| 형식: | String[] |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
매개 변수 집합
IndividualProvider
| Position: | Named |
| 필수: | True |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | True |
| 나머지 인수의 값: | False |
CommonParameters
이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters를 참조하세요.