Partilhar via


IStorageSyncClientWrapper.EnsureRoleAssignment Method

Definition

Ensures the role assignment.

public Microsoft.Azure.Management.Authorization.Version2015_07_01.Models.RoleAssignment EnsureRoleAssignment (Microsoft.Azure.Commands.Common.MSGraph.Version1_0.Applications.Models.MicrosoftGraphServicePrincipal serverPrincipal, string storageAccountSubscriptionId, string storageAccountResourceId);
abstract member EnsureRoleAssignment : Microsoft.Azure.Commands.Common.MSGraph.Version1_0.Applications.Models.MicrosoftGraphServicePrincipal * string * string -> Microsoft.Azure.Management.Authorization.Version2015_07_01.Models.RoleAssignment
Public Function EnsureRoleAssignment (serverPrincipal As MicrosoftGraphServicePrincipal, storageAccountSubscriptionId As String, storageAccountResourceId As String) As RoleAssignment

Parameters

serverPrincipal
MicrosoftGraphServicePrincipal

The server principal.

storageAccountSubscriptionId
String

The storage account subscription identifier.

storageAccountResourceId
String

The storage account resource identifier.

Returns

RoleAssignment.

Applies to