ResourcesExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Resources.

public static class ResourcesExtensions
type ResourcesExtensions = class
Public Module ResourcesExtensions
Inheritance
ResourcesExtensions

Methods

CalculateDeploymentTemplateHash(TenantResource, BinaryData, CancellationToken)

Calculate the hash of the given template.

  • Request Path: /providers/Microsoft.Resources/calculateTemplateHash
  • Operation Id: Deployments_CalculateTemplateHash
  • Default Api Version: 2022-09-01
  • Resource: ArmDeploymentResource
CalculateDeploymentTemplateHashAsync(TenantResource, BinaryData, CancellationToken)

Calculate the hash of the given template.

  • Request Path: /providers/Microsoft.Resources/calculateTemplateHash
  • Operation Id: Deployments_CalculateTemplateHash
  • Default Api Version: 2022-09-01
  • Resource: ArmDeploymentResource
GetArmApplication(ResourceGroupResource, String, CancellationToken)

Gets the managed application.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}
  • Operation Id: Applications_Get
  • Default Api Version: 2019-07-01
  • Resource: ArmApplicationResource
GetArmApplicationAsync(ResourceGroupResource, String, CancellationToken)

Gets the managed application.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}
  • Operation Id: Applications_Get
  • Default Api Version: 2019-07-01
  • Resource: ArmApplicationResource
GetArmApplicationDefinition(ResourceGroupResource, String, CancellationToken)

Gets the managed application definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}
  • Operation Id: ApplicationDefinitions_Get
  • Default Api Version: 2019-07-01
  • Resource: ArmApplicationDefinitionResource
GetArmApplicationDefinitionAsync(ResourceGroupResource, String, CancellationToken)

Gets the managed application definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}
  • Operation Id: ApplicationDefinitions_Get
  • Default Api Version: 2019-07-01
  • Resource: ArmApplicationDefinitionResource
GetArmApplicationDefinitionResource(ArmClient, ResourceIdentifier)

Gets an object representing an ArmApplicationDefinitionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ArmApplicationDefinitionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetArmApplicationDefinitionResource(ResourceIdentifier) instead.

GetArmApplicationDefinitions(ResourceGroupResource)

Gets a collection of ArmApplicationDefinitionResources in the ResourceGroupResource. MockingTo mock this method, please mock GetArmApplicationDefinitions() instead.

GetArmApplicationResource(ArmClient, ResourceIdentifier)

Gets an object representing an ArmApplicationResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ArmApplicationResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetArmApplicationResource(ResourceIdentifier) instead.

GetArmApplications(ResourceGroupResource)

Gets a collection of ArmApplicationResources in the ResourceGroupResource. MockingTo mock this method, please mock GetArmApplications() instead.

GetArmApplications(SubscriptionResource, CancellationToken)

Gets all the applications within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications
  • Operation Id: Applications_ListBySubscription
  • Default Api Version: 2019-07-01
  • Resource: ArmApplicationResource
GetArmApplicationsAsync(SubscriptionResource, CancellationToken)

Gets all the applications within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications
  • Operation Id: Applications_ListBySubscription
  • Default Api Version: 2019-07-01
  • Resource: ArmApplicationResource
GetArmDeployment(ManagementGroupResource, String, CancellationToken)

Gets a deployment.

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

Gets a deployment.

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

Gets a deployment.

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

Gets a deployment.

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

Gets a deployment.

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}
  • Operation Id: Deployments_GetAtScope
  • Default Api Version: 2022-09-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: 2022-09-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: 2022-09-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: 2022-09-01
  • Resource: ArmDeploymentResource
GetArmDeploymentResource(ArmClient, ResourceIdentifier)

Gets an object representing an ArmDeploymentResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create an ArmDeploymentResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetArmDeploymentResource(ResourceIdentifier) instead.

GetArmDeployments(ManagementGroupResource)

Gets a collection of ArmDeploymentResources in the ManagementGroupResource. MockingTo mock this method, please mock GetArmDeployments() instead.

GetArmDeployments(ResourceGroupResource)

Gets a collection of ArmDeploymentResources in the ResourceGroupResource. MockingTo mock this method, please mock GetArmDeployments() instead.

GetArmDeployments(SubscriptionResource)

Gets a collection of ArmDeploymentResources in the SubscriptionResource. MockingTo mock this method, please mock GetArmDeployments() instead.

GetArmDeployments(TenantResource)

Gets a collection of ArmDeploymentResources in the TenantResource. MockingTo mock this method, please mock GetArmDeployments() instead.

GetArmDeploymentScript(ResourceGroupResource, String, CancellationToken)

Gets a deployment script with a given name.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}
  • Operation Id: DeploymentScripts_Get
  • Default Api Version: 2020-10-01
  • Resource: ArmDeploymentScriptResource
GetArmDeploymentScriptAsync(ResourceGroupResource, String, CancellationToken)

Gets a deployment script with a given name.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}
  • Operation Id: DeploymentScripts_Get
  • Default Api Version: 2020-10-01
  • Resource: ArmDeploymentScriptResource
GetArmDeploymentScriptResource(ArmClient, ResourceIdentifier)

Gets an object representing an ArmDeploymentScriptResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ArmDeploymentScriptResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetArmDeploymentScriptResource(ResourceIdentifier) instead.

GetArmDeploymentScripts(ResourceGroupResource)

Gets a collection of ArmDeploymentScriptResources in the ResourceGroupResource. MockingTo mock this method, please mock GetArmDeploymentScripts() instead.

GetArmDeploymentScripts(SubscriptionResource, CancellationToken)

Lists all deployment scripts for a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentScripts
  • Operation Id: DeploymentScripts_ListBySubscription
  • Default Api Version: 2020-10-01
  • Resource: ArmDeploymentScriptResource
GetArmDeploymentScriptsAsync(SubscriptionResource, CancellationToken)

Lists all deployment scripts for a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentScripts
  • Operation Id: DeploymentScripts_ListBySubscription
  • Default Api Version: 2020-10-01
  • Resource: ArmDeploymentScriptResource
GetJitRequest(ResourceGroupResource, String, CancellationToken)

Gets the JIT request.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}
  • Operation Id: JitRequests_Get
  • Default Api Version: 2019-07-01
  • Resource: JitRequestResource
GetJitRequestAsync(ResourceGroupResource, String, CancellationToken)

Gets the JIT request.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}
  • Operation Id: JitRequests_Get
  • Default Api Version: 2019-07-01
  • Resource: JitRequestResource
GetJitRequestDefinitions(SubscriptionResource, CancellationToken)

Retrieves all JIT requests within the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests
  • Operation Id: jitRequests_ListBySubscription
  • Default Api Version: 2019-07-01
  • Resource: JitRequestResource
GetJitRequestDefinitionsAsync(SubscriptionResource, CancellationToken)

Retrieves all JIT requests within the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests
  • Operation Id: jitRequests_ListBySubscription
  • Default Api Version: 2019-07-01
  • Resource: JitRequestResource
GetJitRequestResource(ArmClient, ResourceIdentifier)

Gets an object representing a JitRequestResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a JitRequestResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetJitRequestResource(ResourceIdentifier) instead.

GetJitRequests(ResourceGroupResource)

Gets a collection of JitRequestResources in the ResourceGroupResource. MockingTo mock this method, please mock GetJitRequests() instead.

GetScriptLogResource(ArmClient, ResourceIdentifier)

Gets an object representing a ScriptLogResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a ScriptLogResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetScriptLogResource(ResourceIdentifier) instead.

GetTemplateSpec(ResourceGroupResource, String, Nullable<TemplateSpecExpandKind>, CancellationToken)

Gets a Template Spec with a given name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_Get
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetTemplateSpecAsync(ResourceGroupResource, String, Nullable<TemplateSpecExpandKind>, CancellationToken)

Gets a Template Spec with a given name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_Get
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetTemplateSpecResource(ArmClient, ResourceIdentifier)

Gets an object representing a TemplateSpecResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a TemplateSpecResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetTemplateSpecResource(ResourceIdentifier) instead.

GetTemplateSpecs(ResourceGroupResource)

Gets a collection of TemplateSpecResources in the ResourceGroupResource. MockingTo mock this method, please mock GetTemplateSpecs() instead.

GetTemplateSpecs(SubscriptionResource, Nullable<TemplateSpecExpandKind>, CancellationToken)

Lists all the Template Specs within the specified subscriptions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs
  • Operation Id: TemplateSpecs_ListBySubscription
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetTemplateSpecsAsync(SubscriptionResource, Nullable<TemplateSpecExpandKind>, CancellationToken)

Lists all the Template Specs within the specified subscriptions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs
  • Operation Id: TemplateSpecs_ListBySubscription
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetTemplateSpecVersionResource(ArmClient, ResourceIdentifier)

Gets an object representing a TemplateSpecVersionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a TemplateSpecVersionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetTemplateSpecVersionResource(ResourceIdentifier) instead.

Applies to