MockableBillingTenantResource.GetBillingSubscriptionAlias 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.
Gets a subscription by its alias ID. The operation is supported for seat based billing subscriptions.
- Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptionAliases/{aliasName}
- Operation Id: BillingSubscriptionsAliases_Get
public virtual Azure.Response<Azure.ResourceManager.Billing.BillingSubscriptionAliasResource> GetBillingSubscriptionAlias (string billingAccountName, string aliasName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBillingSubscriptionAlias : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingSubscriptionAliasResource>
override this.GetBillingSubscriptionAlias : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingSubscriptionAliasResource>
Public Overridable Function GetBillingSubscriptionAlias (billingAccountName As String, aliasName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BillingSubscriptionAliasResource)
Parameters
- billingAccountName
- String
The ID that uniquely identifies a billing account.
- aliasName
- String
The ID that uniquely identifies a subscription alias.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
billingAccountName
or aliasName
is null.
billingAccountName
or aliasName
is an empty string, and was expected to be non-empty.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for