ArmResourcesModelFactory.ManagedResourceReference Method

Definition

Initializes a new instance of ManagedResourceReference.

public static Azure.ResourceManager.Resources.Models.ManagedResourceReference ManagedResourceReference (string id = default, Azure.ResourceManager.Resources.Models.ResourceStatusMode? status = default, Azure.ResourceManager.Resources.Models.DenyStatusMode? denyStatus = default);
static member ManagedResourceReference : string * Nullable<Azure.ResourceManager.Resources.Models.ResourceStatusMode> * Nullable<Azure.ResourceManager.Resources.Models.DenyStatusMode> -> Azure.ResourceManager.Resources.Models.ManagedResourceReference
Public Shared Function ManagedResourceReference (Optional id As String = Nothing, Optional status As Nullable(Of ResourceStatusMode) = Nothing, Optional denyStatus As Nullable(Of DenyStatusMode) = Nothing) As ManagedResourceReference

Parameters

id
String

The resourceId of a resource managed by the deployment stack.

status
Nullable<ResourceStatusMode>

Current management state of the resource in the deployment stack.

denyStatus
Nullable<DenyStatusMode>

denyAssignment settings applied to the resource.

Returns

A new ManagedResourceReference instance for mocking.

Applies to