ResourcesExtensions.GetDeploymentStack Method

Definition

Overloads

GetDeploymentStack(ManagementGroupResource, String, CancellationToken)

Gets a Deployment stack with a given name at specific scope.

  • Request Path: /{scope}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}
  • Operation Id: DeploymentStacks_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: DeploymentStackResource
GetDeploymentStack(ResourceGroupResource, String, CancellationToken)

Gets a Deployment stack with a given name at specific scope.

  • Request Path: /{scope}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}
  • Operation Id: DeploymentStacks_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: DeploymentStackResource
GetDeploymentStack(SubscriptionResource, String, CancellationToken)

Gets a Deployment stack with a given name at specific scope.

  • Request Path: /{scope}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}
  • Operation Id: DeploymentStacks_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: DeploymentStackResource

GetDeploymentStack(ManagementGroupResource, String, CancellationToken)

Gets a Deployment stack with a given name at specific scope.

  • Request Path: /{scope}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}
  • Operation Id: DeploymentStacks_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: DeploymentStackResource
public static Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource> GetDeploymentStack (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string deploymentStackName, System.Threading.CancellationToken cancellationToken = default);
static member GetDeploymentStack : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>
<Extension()>
Public Function GetDeploymentStack (managementGroupResource As ManagementGroupResource, deploymentStackName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DeploymentStackResource)

Parameters

managementGroupResource
ManagementGroupResource

The ManagementGroupResource instance the method will execute against.

deploymentStackName
String

Name of the deployment stack.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managementGroupResource or deploymentStackName is null.

deploymentStackName is an empty string, and was expected to be non-empty.

Applies to

GetDeploymentStack(ResourceGroupResource, String, CancellationToken)

Gets a Deployment stack with a given name at specific scope.

  • Request Path: /{scope}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}
  • Operation Id: DeploymentStacks_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: DeploymentStackResource
public static Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource> GetDeploymentStack (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string deploymentStackName, System.Threading.CancellationToken cancellationToken = default);
static member GetDeploymentStack : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>
<Extension()>
Public Function GetDeploymentStack (resourceGroupResource As ResourceGroupResource, deploymentStackName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DeploymentStackResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

deploymentStackName
String

Name of the deployment stack.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or deploymentStackName is null.

deploymentStackName is an empty string, and was expected to be non-empty.

Applies to

GetDeploymentStack(SubscriptionResource, String, CancellationToken)

Gets a Deployment stack with a given name at specific scope.

  • Request Path: /{scope}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}
  • Operation Id: DeploymentStacks_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: DeploymentStackResource
public static Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource> GetDeploymentStack (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string deploymentStackName, System.Threading.CancellationToken cancellationToken = default);
static member GetDeploymentStack : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>
<Extension()>
Public Function GetDeploymentStack (subscriptionResource As SubscriptionResource, deploymentStackName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DeploymentStackResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

deploymentStackName
String

Name of the deployment stack.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or deploymentStackName is null.

deploymentStackName is an empty string, and was expected to be non-empty.

Applies to