Compartilhar via


RunCommandManagedIdentity Class

Definition

Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.RunCommandManagedIdentityTypeConverter))]
public class RunCommandManagedIdentity : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.IRunCommandManagedIdentity
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.RunCommandManagedIdentityTypeConverter))>]
type RunCommandManagedIdentity = class
    interface IRunCommandManagedIdentity
    interface IJsonSerializable
Public Class RunCommandManagedIdentity
Implements IRunCommandManagedIdentity
Inheritance
RunCommandManagedIdentity
Attributes
Implements

Constructors

RunCommandManagedIdentity()

Creates an new RunCommandManagedIdentity instance.

Properties

ClientId

Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.

ObjectId

Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of RunCommandManagedIdentity.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of RunCommandManagedIdentity.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.IRunCommandManagedIdentity.

FromJsonString(String)

Creates a new instance of RunCommandManagedIdentity, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of RunCommandManagedIdentity into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to