ResourcesExtensions.GetDeploymentStackAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetDeploymentStackAsync(ManagementGroupResource, String, CancellationToken) |
Gets a Deployment stack with a given name at specific scope.
|
GetDeploymentStackAsync(ResourceGroupResource, String, CancellationToken) |
Gets a Deployment stack with a given name at specific scope.
|
GetDeploymentStackAsync(SubscriptionResource, String, CancellationToken) |
Gets a Deployment stack with a given name at specific scope.
|
GetDeploymentStackAsync(ManagementGroupResource, String, CancellationToken)
- Source:
- ResourcesExtensions.cs
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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>> GetDeploymentStackAsync (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string deploymentStackName, System.Threading.CancellationToken cancellationToken = default);
static member GetDeploymentStackAsync : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>>
<Extension()>
Public Function GetDeploymentStackAsync (managementGroupResource As ManagementGroupResource, deploymentStackName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
GetDeploymentStackAsync(ResourceGroupResource, String, CancellationToken)
- Source:
- ResourcesExtensions.cs
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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>> GetDeploymentStackAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string deploymentStackName, System.Threading.CancellationToken cancellationToken = default);
static member GetDeploymentStackAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>>
<Extension()>
Public Function GetDeploymentStackAsync (resourceGroupResource As ResourceGroupResource, deploymentStackName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
GetDeploymentStackAsync(SubscriptionResource, String, CancellationToken)
- Source:
- ResourcesExtensions.cs
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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>> GetDeploymentStackAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string deploymentStackName, System.Threading.CancellationToken cancellationToken = default);
static member GetDeploymentStackAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.DeploymentStackResource>>
<Extension()>
Public Function GetDeploymentStackAsync (subscriptionResource As SubscriptionResource, deploymentStackName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.