次の方法で共有


DynamicResourceNamePropertyResolver.GetUniqueSuffix Method

Definition

Overloads

GetUniqueSuffix(ProvisioningBuildOptions, ProvisionableResource)

Get a unique dynamic name suffix for the given resource.

GetUniqueSuffix(ProvisioningContext, Resource)

Get a unique dynamic name suffix for the given resource.

GetUniqueSuffix(ProvisioningBuildOptions, ProvisionableResource)

Source:
ResourceNamePropertyResolver.cs

Get a unique dynamic name suffix for the given resource.

protected virtual Azure.Provisioning.BicepValue<string> GetUniqueSuffix (Azure.Provisioning.ProvisioningBuildOptions options, Azure.Provisioning.Primitives.ProvisionableResource resource);
abstract member GetUniqueSuffix : Azure.Provisioning.ProvisioningBuildOptions * Azure.Provisioning.Primitives.ProvisionableResource -> Azure.Provisioning.BicepValue<string>
override this.GetUniqueSuffix : Azure.Provisioning.ProvisioningBuildOptions * Azure.Provisioning.Primitives.ProvisionableResource -> Azure.Provisioning.BicepValue<string>
Protected Overridable Function GetUniqueSuffix (options As ProvisioningBuildOptions, resource As ProvisionableResource) As BicepValue(Of String)

Parameters

options
ProvisioningBuildOptions

The build options for this resource.

resource
ProvisionableResource

The resource with an unset Name property.

Returns

A unique dynamic name suffix for the resource.

Remarks

This defaults to `uniqueString(resourceGroup().id)` for most resources and `uniqueString(deployment().id)` for resource groups. This can be overridden to provide a different "entropy source."

Applies to

GetUniqueSuffix(ProvisioningContext, Resource)

Source:
ResourceNamePropertyResolver.cs

Get a unique dynamic name suffix for the given resource.

protected virtual Azure.Provisioning.BicepValue<string> GetUniqueSuffix (Azure.Provisioning.ProvisioningContext context, Azure.Provisioning.Primitives.Resource resource);
abstract member GetUniqueSuffix : Azure.Provisioning.ProvisioningContext * Azure.Provisioning.Primitives.Resource -> Azure.Provisioning.BicepValue<string>
override this.GetUniqueSuffix : Azure.Provisioning.ProvisioningContext * Azure.Provisioning.Primitives.Resource -> Azure.Provisioning.BicepValue<string>
Protected Overridable Function GetUniqueSuffix (context As ProvisioningContext, resource As Resource) As BicepValue(Of String)

Parameters

context
ProvisioningContext

The provisioning context for this resource.

resource
Resource

The resource with an unset Name property.

Returns

A unique dynamic name suffix for the resource.

Remarks

This defaults to `uniqueString(resourceGroup().id)` for most resources and `uniqueString(deployment().id)` for resource groups. This can be overridden to provide a different "entropy source."

Applies to