你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DynamicResourceNamePropertyResolver.ResolveName 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.
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)
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)
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.