WithKeyVaultRoleAssignments
Method
func (Resource) WithKeyVaultRoleAssignments( target AzureKeyVaultResource, roles []AzureKeyVaultRole,) ResourceSignature
method
WithKeyVaultRoleAssignments builderAssigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Key Vault resource. This replaces the default role assignments for the resource.
WithKeyVaultRoleAssignments( target AzureKeyVaultResource, roles []AzureKeyVaultRole,) ResourceParameters
targetAzureKeyVaultResource The target Azure Key Vault resource.roles[]AzureKeyVaultRole The Key Vault roles to be assigned.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
AzureBicepResourcetype
AzureEnvironmentResourcetype
AzureKeyVaultResourcetype
AzureKeyVaultSecretResourcetype
AzureProvisioningResourcetype
AzureUserAssignedIdentityResourcetype
CSharpAppResourcetype
ContainerRegistryResourcetype
ContainerResourcetype
DotnetToolResourcetype
ExecutableResourcetype
ExternalServiceResourcetype
ParameterResourcetype
ProjectResource