DefaultNamingPolicy class
Default workload-based naming policy.
Generates names by composing the resource type abbreviation, workload,
environment, region, label, and an ordinal suffix for repeated types.
Global-scope resources get a uniqueString(subscription().subscriptionId)
suffix to reduce name collisions; Azure name availability is not checked.
Constructors
| Default |
Methods
| generate |
Produces a candidate; resource construction validates the returned name. |
Constructor Details
DefaultNamingPolicy(NamingPolicyOptions)
Method Details
generateName(NamingContext)
Produces a candidate; resource construction validates the returned name.
function generateName(context: NamingContext): ExpressionOrValue<string>
Parameters
- context
- NamingContext
Returns
ExpressionOrValue<string>