ArmComputeBulkActionsModelFactory.VirtualMachineIdentity Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identity for the virtual machine.
public static Azure.ResourceManager.Compute.BulkActions.Models.VirtualMachineIdentity VirtualMachineIdentity(string principalId = default, string tenantId = default, Azure.ResourceManager.Compute.BulkActions.Models.ComputeBulkActionsIdentityType? type = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.Compute.BulkActions.Models.UserAssignedIdentitiesValue> userAssignedIdentities = default);
static member VirtualMachineIdentity : string * string * Nullable<Azure.ResourceManager.Compute.BulkActions.Models.ComputeBulkActionsIdentityType> * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.Compute.BulkActions.Models.UserAssignedIdentitiesValue> -> Azure.ResourceManager.Compute.BulkActions.Models.VirtualMachineIdentity
Public Shared Function VirtualMachineIdentity (Optional principalId As String = Nothing, Optional tenantId As String = Nothing, Optional type As Nullable(Of ComputeBulkActionsIdentityType) = Nothing, Optional userAssignedIdentities As IDictionary(Of String, UserAssignedIdentitiesValue) = Nothing) As VirtualMachineIdentity
Parameters
- principalId
- String
The principal id of virtual machine identity. This property will only be provided for a system assigned identity.
- tenantId
- String
The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity.
The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
- userAssignedIdentities
- IDictionary<String,UserAssignedIdentitiesValue>
The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
Returns
A new VirtualMachineIdentity instance for mocking.