Share via


SubscriptionExtensions Class

Definition

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

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

Methods

AcceptSubscriptionOwnership(TenantResource, WaitUntil, String, AcceptOwnershipContent, CancellationToken)

Accept subscription ownership.

  • Request Path: /providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnership
  • Operation Id: Subscription_AcceptOwnership
AcceptSubscriptionOwnershipAsync(TenantResource, WaitUntil, String, AcceptOwnershipContent, CancellationToken)

Accept subscription ownership.

  • Request Path: /providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnership
  • Operation Id: Subscription_AcceptOwnership
CancelSubscription(SubscriptionResource, CancellationToken)

The operation to cancel a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel
  • Operation Id: Subscription_Cancel
CancelSubscriptionAsync(SubscriptionResource, CancellationToken)

The operation to cancel a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel
  • Operation Id: Subscription_Cancel
EnableSubscription(SubscriptionResource, CancellationToken)

The operation to enable a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable
  • Operation Id: Subscription_Enable
EnableSubscriptionAsync(SubscriptionResource, CancellationToken)

The operation to enable a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable
  • Operation Id: Subscription_Enable
GetAcceptOwnershipStatus(TenantResource, String, CancellationToken)

Accept subscription ownership status.

  • Request Path: /providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnershipStatus
  • Operation Id: Subscription_AcceptOwnershipStatus
GetAcceptOwnershipStatusAsync(TenantResource, String, CancellationToken)

Accept subscription ownership status.

  • Request Path: /providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnershipStatus
  • Operation Id: Subscription_AcceptOwnershipStatus
GetBillingAccountPolicies(TenantResource)

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

GetBillingAccountPolicy(TenantResource, String, CancellationToken)

Get Billing Account Policy.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Subscription/policies/default
  • Operation Id: BillingAccount_GetPolicy
GetBillingAccountPolicyAsync(TenantResource, String, CancellationToken)

Get Billing Account Policy.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Subscription/policies/default
  • Operation Id: BillingAccount_GetPolicy
GetBillingAccountPolicyResource(ArmClient, ResourceIdentifier)

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

GetSubscriptionAlias(TenantResource, String, CancellationToken)

Get Alias Subscription.

  • Request Path: /providers/Microsoft.Subscription/aliases/{aliasName}
  • Operation Id: Alias_Get
GetSubscriptionAliasAsync(TenantResource, String, CancellationToken)

Get Alias Subscription.

  • Request Path: /providers/Microsoft.Subscription/aliases/{aliasName}
  • Operation Id: Alias_Get
GetSubscriptionAliases(TenantResource)

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

GetSubscriptionAliasResource(ArmClient, ResourceIdentifier)

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

GetTenantPolicy(TenantResource)

Gets an object representing a TenantPolicyResource along with the instance operations that can be performed on it in the TenantResource. MockingTo mock this method, please mock GetTenantPolicy() instead.

GetTenantPolicyResource(ArmClient, ResourceIdentifier)

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

RenameSubscription(SubscriptionResource, SubscriptionName, CancellationToken)

The operation to rename a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename
  • Operation Id: Subscription_Rename
RenameSubscriptionAsync(SubscriptionResource, SubscriptionName, CancellationToken)

The operation to rename a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename
  • Operation Id: Subscription_Rename

Applies to