Partager 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.

public class RunCommandManagedIdentity : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.RunCommandManagedIdentity>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.RunCommandManagedIdentity>
type RunCommandManagedIdentity = class
    interface IJsonModel<RunCommandManagedIdentity>
    interface IPersistableModel<RunCommandManagedIdentity>
Public Class RunCommandManagedIdentity
Implements IJsonModel(Of RunCommandManagedIdentity), IPersistableModel(Of RunCommandManagedIdentity)
Inheritance
RunCommandManagedIdentity
Implements

Constructors

RunCommandManagedIdentity()

Initializes a new instance of RunCommandManagedIdentity.

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

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<RunCommandManagedIdentity>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RunCommandManagedIdentity>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RunCommandManagedIdentity>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RunCommandManagedIdentity>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RunCommandManagedIdentity>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to