Bearbeiten

Freigeben über


New-AzServiceLinkerSecretAuthInfoObject

Create an in-memory object for SecretAuthInfo.

Syntax

New-AzServiceLinkerSecretAuthInfoObject
   [-Name <String>]
   [-SecretValue <String>]
   [-SecretKeyVaultUri <String>]
   [-SecretNameInKeyVault <String>]
   [<CommonParameters>]

Description

Create an in-memory object for SecretAuthInfo.

Examples

Example 1: Create Secret Auth info with raw value

New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretValue password

AuthType Name
-------- ----
secret   user

Create Secret Auth info with raw value

Example 2: Create Secret Auth info with keyvault secret uri

New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretKeyVaultUri "https://servicelinker-kv-ref.vault.azure.net/secrets/test-secret/cc5d8095a54f4755b342f4e7884b5c84"

AuthType Name
-------- ----
secret   user

Create Secret Auth info with keyvault secret uri

Example 3: Create Secret Auth info with keyvault secret reference(It's for AKS only and `-SecretStoreVaultId` must be set at the same time when creating linker)

New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretNameInKeyVault test-secret

AuthType Name
-------- ----
secret   user

Create Secret Auth info with keyvault secret reference It's for AKS only and -SecretStoreVaultId must be set at the same time when creating linker

Parameters

-Name

Username or account name for secret auth.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SecretKeyVaultUri

The Key Vault Uri of secret.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SecretNameInKeyVault

The name of secret in keyvault refenced by -SecretStoreKeyVaultId.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SecretValue

Raw value of secret.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

SecretAuthInfo