你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzAttestationProvider
Creates a new Attestation Provider.
Syntax
New-AzAttestationProvider
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-Location <String>
[-PolicySigningCertificateKeyPath <String>]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Creates a new Attestation Provider.
Examples
Example 1: Create a new Attestation Provider
New-AzAttestationProvider -Name testprovider1 -ResourceGroupName test-rg -Location "eastus"
Location Name ResourceGroupName
-------- ---- -----------------
eastus testprovider1 test-rg
This command creates a new Attestation Provider named testprovider1
in resource group test-rg
.
Example 2: Create a new Attestation Provider with trusted signing keys
New-AzAttestationProvider -Name testprovider2 -ResourceGroupName test-rg -Location "eastus" -PolicySigningCertificateKeyPath .\cert1.pem
Location Name ResourceGroupName
-------- ---- -----------------
eastus testprovider2 test-rg
This command creates a new Attestation Provider named testprovider2
with trusted signing keys in resource group test-rg
.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Location
The supported Azure location where the attestation provider should be created.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Name of the attestation provider.
Type: | String |
Aliases: | ProviderName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PolicySigningCertificateKeyPath
Specifies the set of trusted signing keys for issuance policy in a single certificate file. The value of the "keys" parameter is an array of JWK values. Bydefault, the order of the JWK values within the array does not implyan order of preference among them, although applications of JWK Setscan choose to assign a meaning to the order for their purposes, ifdesired. To construct, see NOTES section for POLICYSIGNINGCERTIFICATEKEY properties and create a hash table.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tag
The tags that will be assigned to the attestation provider.
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |