Udostępnij za pośrednictwem


Get-AzAttestationProvider

Uzyskaj stan dostawcy zaświadczania.

Składnia

Get-AzAttestationProvider
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAttestationProvider
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAttestationProvider
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAttestationProvider
   -InputObject <IAttestationIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Opis

Uzyskaj stan dostawcy zaświadczania.

Przykłady

Przykład 1. Pobieranie stanu określonego dostawcy zaświadczania

Get-AzAttestationProvider -Name testprovider1 -ResourceGroupName test-rg | fl

AttestUri                    : https://testprovider1.eus.attest.azure.net
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Attestation/attestationProviders/testprovider1
Location                     : eastus
Name                         : testprovider1
PrivateEndpointConnection    : 
ResourceGroupName            : test-rg
Status                       : Ready
SystemDataCreatedAt          : 
SystemDataCreatedBy          : 
SystemDataCreatedByType      : 
SystemDataLastModifiedAt     : 
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : 
Tag                          : {
                               }
TrustModel                   : AAD
Type                         : Microsoft.Attestation/attestationProviders

To polecenie pobiera stan określonego dostawcy zaświadczania o nazwie testprovider1.

Przykład 2. Wyświetlanie listy stanów wszystkich dostawców zaświadczania w bieżącej subskrypcji

Get-AzAttestationProvider

SystemDataCreatedAt          : 
SystemDataCreatedBy          : 
SystemDataCreatedByType      : 
SystemDataLastModifiedAt     : 
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : 
Value                        : {{
                                 "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test-rg/providers/Microsoft.Attestation/attestationProviders/test",
                                 "name": "test",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "tags": {
                                   "Test": "true",
                                   "CreationYear": "2020"
                                 },
                                 "location": "East US",
                                 "properties": {
                                   "trustModel": "Isolated",
                                   "status": "Ready",
                                   "attestUri": "https://test.eus.attest.azure.net"
                                 }
                               }, {
                                 "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test-rg/providers/Microsoft.Attestation/attestationProviders/testprovider1",
                                 "name": "testprovider1",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "tags": {
                                   "Test": "true",
                                   "CreationYear": "2020"
                                 },
                                 "location": "East US",
                                 "properties": {
                                   "trustModel": "Isolated",
                                   "status": "Ready",
                                   "attestUri": "https://testprovider1.eus.attest.azure.net"
                                 }
                               },{
                                 "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test-rg/providers/Microsoft.Att 
                               estation/attestationProviders/testprovider2",
                                 "name": "testprovider2",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "location": "eastus",
                                 "properties": {
                                   "trustModel": "AAD",
                                   "status": "Ready",
                                   "attestUri": "https://testprovider2.eus.attest.azure.net"
                                 }
                               }}

To polecenie wyświetla listę stanów wszystkich dostawców zaświadczania w bieżącej subskrypcji.

Przykład 2. Wyświetlanie listy stanów wszystkich dostawców zaświadczania w grupie zasobów

Get-AzAttestationProvider -ResourceGroupName test-rg

SystemDataCreatedAt          : 
SystemDataCreatedBy          : 
SystemDataCreatedByType      : 
SystemDataLastModifiedAt     : 
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : 
Value                        : {{
                                 "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test-rg/providers/Microsoft.Attestation/attestationProviders/test",
                                 "name": "test",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "tags": {
                                   "Test": "true",
                                   "CreationYear": "2020"
                                 },
                                 "location": "East US",
                                 "properties": {
                                   "trustModel": "Isolated",
                                   "status": "Ready",
                                   "attestUri": "https://test.eus.attest.azure.net"
                                 }
                               }, {
                                 "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test-rg/providers/Microsoft.Attestation/attestationProviders/testprovider1",
                                 "name": "testprovider1",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "tags": {
                                   "Test": "true",
                                   "CreationYear": "2020"
                                 },
                                 "location": "East US",
                                 "properties": {
                                   "trustModel": "Isolated",
                                   "status": "Ready",
                                   "attestUri": "https://testprovider1.eus.attest.azure.net"
                                 }
                               },{
                                 "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test-rg/providers/Microsoft.Attestation/attestationProviders/testprovider2",
                                 "name": "testprovider2",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "location": "eastus",
                                 "properties": {
                                   "trustModel": "AAD",
                                   "status": "Ready",
                                   "attestUri": "https://testprovider2.eus.attest.azure.net"
                                 }
                               }}

To polecenie wyświetla listę stanów wszystkich dostawców zaświadczania w grupie zasobów.

Parametry

-DefaultProfile

Parametr DefaultProfile nie działa. Użyj parametru SubscriptionId, jeśli jest dostępny, jeśli wykonuje polecenie cmdlet dla innej subskrypcji.

Typ:PSObject
Aliasy:AzureRMContext, AzureCredential
Position:Named
Domyślna wartość:None
Wymagane:False
Akceptowanie danych wejściowych potoku:False
Akceptowanie symboli wieloznacznych:False

-InputObject

Parametr tożsamości Do konstruowania, zobacz sekcję UWAGI dla właściwości INPUTOBJECT i utwórz tabelę skrótów.

Typ:IAttestationIdentity
Position:Named
Domyślna wartość:None
Wymagane:True
Akceptowanie danych wejściowych potoku:True
Akceptowanie symboli wieloznacznych:False

-Name

Nazwa dostawcy zaświadczania.

Typ:String
Aliasy:ProviderName
Position:Named
Domyślna wartość:None
Wymagane:True
Akceptowanie danych wejściowych potoku:False
Akceptowanie symboli wieloznacznych:False

-ResourceGroupName

Nazwa grupy zasobów. Nazwa jest niewrażliwa na wielkość liter.

Typ:String
Position:Named
Domyślna wartość:None
Wymagane:True
Akceptowanie danych wejściowych potoku:False
Akceptowanie symboli wieloznacznych:False

-SubscriptionId

Identyfikator subskrypcji docelowej.

Typ:String[]
Position:Named
Domyślna wartość:(Get-AzContext).Subscription.Id
Wymagane:False
Akceptowanie danych wejściowych potoku:False
Akceptowanie symboli wieloznacznych:False

Dane wejściowe

Dane wyjściowe