你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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