ServicePrincipalImpl.IWithRoleAssignmentBeta.WithNewRoleInResourceGroup 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.
Assigns a new role to the service principal.
Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithCreate IWithRoleAssignmentBeta.WithNewRoleInResourceGroup (Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role, Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup resourceGroup);
abstract member Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithRoleAssignmentBeta.WithNewRoleInResourceGroup : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole * Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup -> Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithCreate
override this.Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithRoleAssignmentBeta.WithNewRoleInResourceGroup : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole * Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup -> Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithCreate
Function WithNewRoleInResourceGroup (role As BuiltInRole, resourceGroup As IResourceGroup) As IWithCreate Implements IWithRoleAssignmentBeta.WithNewRoleInResourceGroup
Parameters
- role
- BuiltInRole
The role to assign to the service principal.
- resourceGroup
- IResourceGroup
The resource group the service principal can access.
Returns
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET