ResourcesExtensions.GetArmDeployment 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
GetArmDeployment(TenantResource, String, CancellationToken) |
Gets a deployment.
|
GetArmDeployment(SubscriptionResource, String, CancellationToken) |
Gets a deployment.
|
GetArmDeployment(ResourceGroupResource, String, CancellationToken) |
Gets a deployment.
|
GetArmDeployment(ManagementGroupResource, String, CancellationToken) |
Gets a deployment.
|
GetArmDeployment(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
public static Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource> GetArmDeployment (this Azure.ResourceManager.Resources.TenantResource tenantResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default);
static member GetArmDeployment : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource>
<Extension()>
Public Function GetArmDeployment (tenantResource As TenantResource, deploymentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ArmDeploymentResource)
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
GetArmDeployment(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
public static Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource> GetArmDeployment (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default);
static member GetArmDeployment : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource>
<Extension()>
Public Function GetArmDeployment (subscriptionResource As SubscriptionResource, deploymentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ArmDeploymentResource)
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
GetArmDeployment(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
public static Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource> GetArmDeployment (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default);
static member GetArmDeployment : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource>
<Extension()>
Public Function GetArmDeployment (resourceGroupResource As ResourceGroupResource, deploymentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ArmDeploymentResource)
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
GetArmDeployment(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
public static Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource> GetArmDeployment (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default);
static member GetArmDeployment : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.ArmDeploymentResource>
<Extension()>
Public Function GetArmDeployment (managementGroupResource As ManagementGroupResource, deploymentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ArmDeploymentResource)
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