IStorageSyncClientWrapper.EnsureRoleAssignment 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.
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.