Share via


Resource.GetAzureName(IConstruct, String) Method

Definition

Validate and sanitize the resource name.

protected virtual string GetAzureName (Azure.Provisioning.IConstruct scope, string resourceName);
abstract member GetAzureName : Azure.Provisioning.IConstruct * string -> string
override this.GetAzureName : Azure.Provisioning.IConstruct * string -> string
Protected Overridable Function GetAzureName (scope As IConstruct, resourceName As String) As String

Parameters

scope
IConstruct

The scope.

resourceName
String

The resource name.

Returns

Sanitized resource name.

Exceptions

If the resource name violates rules that cannot be sanitized.

Applies to