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

AutomationEncryptionProperties.UserAssignedIdentity 属性

定义

用于 CMK 的用户标识。 它将是采用以下格式的 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

若要将对象分配给此属性,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

public BinaryData UserAssignedIdentity { get; set; }
member this.UserAssignedIdentity : BinaryData with get, set
Public Property UserAssignedIdentity As BinaryData

属性值

适用于