Bearbeiten

Freigeben über


New-AzServiceLinkerAzureResourceObject

Create an in-memory object for AzureResource.

Syntax

New-AzServiceLinkerAzureResourceObject
   -Id <String>
   [-ConnectAsKubernetesCsiDriver <Boolean>]
   [<CommonParameters>]

Description

Create an in-memory object for AzureResource.

Examples

Example 1: Create an target resource object for azure resource

New-AzServiceLinkerAzureResourceObject -Id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv -ConnectAsKubernetesCsiDriver 1

Id
--
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-…

Create an AzureResourceObject as the param of -TargetService

Parameters

-ConnectAsKubernetesCsiDriver

True if connect via Kubernetes CSI Driver. Source must be AKS and target must be KeyVault.

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

-Id

The Id of azure resource.

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

Outputs

AzureResource