共用方式為


DynamicResourceNamePropertyResolver.ResolveName Method

Definition

Overloads

ResolveName(ProvisioningBuildOptions, ProvisionableResource, ResourceNameRequirements)

Generate a unique name for a resource by combining the resource's BicepIdentifier as a prefix and a unique suffix based on the current resource group's ID.

ResolveName(ProvisioningContext, Resource, ResourceNameRequirements)

Generate a unique name for a resource by combining the resource's IdentifierName as a prefix and a unique suffix based on the current resource group's ID.

ResolveName(ProvisioningBuildOptions, ProvisionableResource, ResourceNameRequirements)

Source:
ResourceNamePropertyResolver.cs

Generate a unique name for a resource by combining the resource's BicepIdentifier as a prefix and a unique suffix based on the current resource group's ID.

public override Azure.Provisioning.BicepValue<string>? ResolveName (Azure.Provisioning.ProvisioningBuildOptions options, Azure.Provisioning.Primitives.ProvisionableResource resource, Azure.Provisioning.Primitives.ResourceNameRequirements requirements);
override this.ResolveName : Azure.Provisioning.ProvisioningBuildOptions * Azure.Provisioning.Primitives.ProvisionableResource * Azure.Provisioning.Primitives.ResourceNameRequirements -> Azure.Provisioning.BicepValue<string>
Public Overrides Function ResolveName (options As ProvisioningBuildOptions, resource As ProvisionableResource, requirements As ResourceNameRequirements) As BicepValue(Of String)

Parameters

options
ProvisioningBuildOptions

The build options for this resource.

resource
ProvisionableResource

The resource with an unset Name property.

requirements
ResourceNameRequirements

Requirements to name the resource.

Returns

A name for the resource.

Applies to

ResolveName(ProvisioningContext, Resource, ResourceNameRequirements)

Source:
ResourceNamePropertyResolver.cs

Generate a unique name for a resource by combining the resource's IdentifierName as a prefix and a unique suffix based on the current resource group's ID.

public override Azure.Provisioning.BicepValue<string>? ResolveName (Azure.Provisioning.ProvisioningContext context, Azure.Provisioning.Primitives.Resource resource, Azure.Provisioning.Primitives.ResourceNameRequirements requirements);
override this.ResolveName : Azure.Provisioning.ProvisioningContext * Azure.Provisioning.Primitives.Resource * Azure.Provisioning.Primitives.ResourceNameRequirements -> Azure.Provisioning.BicepValue<string>
Public Overrides Function ResolveName (context As ProvisioningContext, resource As Resource, requirements As ResourceNameRequirements) As BicepValue(Of String)

Parameters

context
ProvisioningContext

The provisioning context for this resource.

resource
Resource

The resource with an unset Name property.

requirements
ResourceNameRequirements

Requirements to name the resource.

Returns

A name for the resource.

Applies to