RoleAssignmentOperationsExtensions.CreateAsync(IRoleAssignmentOperations, String, Guid, RoleAssignmentCreateParameters) 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.
Create role assignment.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateResult> CreateAsync (this Microsoft.Azure.Management.Authorization.IRoleAssignmentOperations operations, string scope, Guid roleAssignmentName, Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters parameters);
static member CreateAsync : Microsoft.Azure.Management.Authorization.IRoleAssignmentOperations * string * Guid * Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateResult>
<Extension()>
Public Function CreateAsync (operations As IRoleAssignmentOperations, scope As String, roleAssignmentName As Guid, parameters As RoleAssignmentCreateParameters) As Task(Of RoleAssignmentCreateResult)
Parameters
- operations
- IRoleAssignmentOperations
Reference to the Microsoft.Azure.Management.Authorization.IRoleAssignmentOperations.
- scope
- System.String
Required. Scope.
- roleAssignmentName
- System.Guid
Required. Role assignment name.
- parameters
- RoleAssignmentCreateParameters
Required. Role assignment.
Returns
- System.Threading.Tasks.Task<RoleAssignmentCreateResult>
Role assignments creation results