Update-AzStorageContextCache
语法
UpdateExpanded (默认值)
Update-AzStorageContextCache
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-CustomerManagedKeyEncryptionKeyUrl <String>]
[-Description <String>]
[-EnableSystemAssignedIdentity <Boolean>]
[-EncryptionInfrastructureEncryption <String>]
[-KeyEncryptionKeyIdentityDelegatedIdentityClientId <String>]
[-KeyEncryptionKeyIdentityFederatedClientId <String>]
[-KeyEncryptionKeyIdentityType <String>]
[-KeyEncryptionKeyIdentityUserAssignedIdentityResourceId <String>]
[-Tag <Hashtable>]
[-UserAssignedIdentity <String[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
UpdateViaIdentityExpanded
Update-AzStorageContextCache
-InputObject <IStorageIdentity>
[-CustomerManagedKeyEncryptionKeyUrl <String>]
[-Description <String>]
[-EnableSystemAssignedIdentity <Boolean>]
[-EncryptionInfrastructureEncryption <String>]
[-KeyEncryptionKeyIdentityDelegatedIdentityClientId <String>]
[-KeyEncryptionKeyIdentityFederatedClientId <String>]
[-KeyEncryptionKeyIdentityType <String>]
[-KeyEncryptionKeyIdentityUserAssignedIdentityResourceId <String>]
[-Tag <Hashtable>]
[-UserAssignedIdentity <String[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
示例
示例 1:更改上下文缓存说明
Update-AzStorageContextCache -ResourceGroupName "myResourceGroup" -Name "mycontextcache" -Description "Updated inference context cache"
在不发送不相关的加密或标识设置的情况下更新说明。
参数
-AsJob
以作业身份运行命令
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-Confirm
在运行 cmdlet 之前,提示你进行确认。
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-CustomerManagedKeyEncryptionKeyUrl
密钥加密密钥 URL、版本控制或非版本控制。
例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-DefaultProfile
DefaultProfile 参数不起作用。
如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
参数属性
类型: PSObject
默认值: None
支持通配符: False
不显示: False
别名: AzureRMContext, AzureCredential
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-Description
账户描述。
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-EnableSystemAssignedIdentity
确定是否为资源启用系统分配的标识。
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-EncryptionInfrastructureEncryption
值处于启用和禁用状态。
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
标识参数
UpdateViaIdentityExpanded
Position: Named
必需: True
来自管道的值: True
来自管道的值(按属性名称): False
来自剩余参数的值: False
-KeyEncryptionKeyIdentityDelegatedIdentityClientId
用于访问密钥加密密钥 URL 的委托标识。
例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<资源组>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。
与 identityType systemAssignedIdentity 和 userAssignedIdentity 互斥 - 仅供内部使用。
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-KeyEncryptionKeyIdentityFederatedClientId
用于访问不同租户中的密钥加密密钥 URL 的应用程序客户端标识。
例如:f83c6b1b-4d34-47e4-bb34-9d83df58b540
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-KeyEncryptionKeyIdentityType
要使用的标识类型。
值可以是 systemAssignedIdentity、userAssignedIdentity 或 delegatedResourceIdentity。
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-KeyEncryptionKeyIdentityUserAssignedIdentityResourceId
用户分配的标识用于访问密钥加密密钥 URL。
例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<资源组>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。
与 identityType systemAssignedIdentity 互斥。
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-Name
上下文缓存的名称
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
别名: ContextCacheName
参数集
UpdateExpanded
Position: Named
必需: True
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-NoWait
异步运行命令
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-ResourceGroupName
资源组的名称。
此名称不区分大小写。
参数属性
类型: String
默认值: None
支持通配符: False
不显示: False
参数集
UpdateExpanded
Position: Named
必需: True
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-SubscriptionId
目标订阅的 ID。
该值必须是 UUID。
参数属性
类型: String
默认值: (Get-AzContext).Subscription.Id
支持通配符: False
不显示: False
参数集
UpdateExpanded
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-Tag
资源标记。
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-UserAssignedIdentity
与资源关联的用户分配标识的数组。
数组中的元素将为 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft。ManagedIdentity/userAssignedIdentities/{identityName}。'
参数属性
类型: String [ ]
默认值: None
支持通配符: False
不显示: False
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-WhatIf
显示 cmdlet 运行时会发生什么情况。
命令脚本未运行。
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
CommonParameters
此 cmdlet 支持以下常用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters 。
输出
Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IContextCache