Interface ContainerGroup.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate

All Superinterfaces:
ContainerGroup.DefinitionStages.WithCreate, ContainerGroup.DefinitionStages.WithDnsPrefix, ContainerGroup.DefinitionStages.WithLogAnalytics, ContainerGroup.DefinitionStages.WithNetworkProfile, ContainerGroup.DefinitionStages.WithRestartPolicy, ContainerGroup.DefinitionStages.WithSystemAssignedManagedServiceIdentity, ContainerGroup.DefinitionStages.WithUserAssignedManagedServiceIdentity, Creatable<ContainerGroup>, HasName, Indexable, Resource.DefinitionWithTags<ContainerGroup.DefinitionStages.WithCreate>
All Known Subinterfaces:
ContainerGroup.Definition
Enclosing interface:
ContainerGroup.DefinitionStages

public static interface ContainerGroup.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate extends ContainerGroup.DefinitionStages.WithCreate
The stage of the container instance definition allowing to specify system assigned managed service identity with specific role based access.
  • Method Details

    • withSystemAssignedIdentityBasedAccessTo

      @Beta(V1_23_0) ContainerGroup.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessTo(String resourceId, BuiltInRole role)
      Specifies a system assigned managed service identity with access to a specific resource with a specified role.
      Parameters:
      resourceId - the id of the resource you are setting up access to
      role - access role to be assigned to the identity
      Returns:
      the next stage of the definition
    • withSystemAssignedIdentityBasedAccessToCurrentResourceGroup

      @Beta(V1_23_0) ContainerGroup.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessToCurrentResourceGroup(BuiltInRole role)
      Specifies a system assigned managed service identity with access to the current resource group and with the specified role.
      Parameters:
      role - access role to be assigned to the identity
      Returns:
      the next stage of the definition
    • withSystemAssignedIdentityBasedAccessTo

      @Beta(V1_23_0) ContainerGroup.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessTo(String resourceId, String roleDefinitionId)
      Specifies a system assigned managed service identity with access to a specific resource with a specified role from the id.
      Parameters:
      resourceId - the id of the resource you are setting up access to
      roleDefinitionId - id of the access role to be assigned to the identity
      Returns:
      the next stage of the definition
    • withSystemAssignedIdentityBasedAccessToCurrentResourceGroup

      @Beta(V1_23_0) ContainerGroup.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate withSystemAssignedIdentityBasedAccessToCurrentResourceGroup(String roleDefinitionId)
      Specifies a system assigned managed service identity with access to the current resource group and with the specified role from the id.
      Parameters:
      roleDefinitionId - id of the access role to be assigned to the identity
      Returns:
      the next stage of the definition