ResourcesExtensions.GetArmDeploymentAsync Method

Definition

Overloads

GetArmDeploymentAsync(ManagementGroupResource, String, CancellationToken)

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource
GetArmDeploymentAsync(ResourceGroupResource, String, CancellationToken)

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource
GetArmDeploymentAsync(SubscriptionResource, String, CancellationToken)

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource
GetArmDeploymentAsync(TenantResource, String, CancellationToken)

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource

GetArmDeploymentAsync(ManagementGroupResource, String, CancellationToken)

Source:
ResourcesExtensions.cs
Source:
ResourcesExtensions.cs

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource
C#
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource>> GetArmDeploymentAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default);

Parameters

managementGroupResource
ManagementGroupResource

The ManagementGroupResource instance the method will execute against.

deploymentName
String

The name of the deployment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managementGroupResource or deploymentName is null.

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetArmDeploymentAsync(ResourceGroupResource, String, CancellationToken)

Source:
ResourcesExtensions.cs
Source:
ResourcesExtensions.cs

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource
C#
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource>> GetArmDeploymentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

deploymentName
String

The name of the deployment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or deploymentName is null.

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetArmDeploymentAsync(SubscriptionResource, String, CancellationToken)

Source:
ResourcesExtensions.cs
Source:
ResourcesExtensions.cs

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource
C#
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource>> GetArmDeploymentAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default);

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

deploymentName
String

The name of the deployment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or deploymentName is null.

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetArmDeploymentAsync(TenantResource, String, CancellationToken)

Source:
ResourcesExtensions.cs
Source:
ResourcesExtensions.cs

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource
C#
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource>> GetArmDeploymentAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default);

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

deploymentName
String

The name of the deployment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tenantResource or deploymentName is null.

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview