Share via


ProvisionableResource.DefineResource<T> Method

Definition

protected Azure.Provisioning.Primitives.ResourceReference<T> DefineResource<T> (string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false, T? defaultValue = default) where T : Azure.Provisioning.Primitives.ProvisionableResource;
member this.DefineResource : string * string[] * bool * bool * 'T -> Azure.Provisioning.Primitives.ResourceReference<'T (requires 'T :> Azure.Provisioning.Primitives.ProvisionableResource)> (requires 'T :> Azure.Provisioning.Primitives.ProvisionableResource)
Protected Function DefineResource(Of T As ProvisionableResource) (propertyName As String, bicepPath As String(), Optional isOutput As Boolean = false, Optional isRequired As Boolean = false, Optional defaultValue As T = Nothing) As ResourceReference(Of T)

Type Parameters

T

Parameters

propertyName
String
bicepPath
String[]
isOutput
Boolean
isRequired
Boolean
defaultValue
T

Returns

Applies to