RunCommandManagedIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. RunCommandManagedIdentity
- com.
Implements
public final class RunCommandManagedIdentity
implements JsonSerializable<RunCommandManagedIdentity>
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.
Constructor Summary
Constructor | Description |
---|---|
RunCommandManagedIdentity() |
Creates an instance of Run |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
clientId()
Get the client |
static
Run |
fromJson(JsonReader jsonReader)
Reads an instance of Run |
String |
objectId()
Get the object |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Run |
withClientId(String clientId)
Set the client |
Run |
withObjectId(String objectId)
Set the object |
Methods inherited from java.lang.Object
Constructor Details
RunCommandManagedIdentity
public RunCommandManagedIdentity()
Creates an instance of RunCommandManagedIdentity class.
Method Details
clientId
public String clientId()
Get the clientId property: Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
Returns:
fromJson
public static RunCommandManagedIdentity fromJson(JsonReader jsonReader)
Reads an instance of RunCommandManagedIdentity from the JsonReader.
Parameters:
Returns:
Throws:
objectId
public String objectId()
Get the objectId property: Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
Returns:
toJson
validate
public void validate()
Validates the instance.
withClientId
public RunCommandManagedIdentity withClientId(String clientId)
Set the clientId property: Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
Parameters:
Returns:
withObjectId
public RunCommandManagedIdentity withObjectId(String objectId)
Set the objectId property: Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
Parameters:
Returns: