BillingProfileCustomerResource.CreateByCustomerBillingRoleAssignmentAsync 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.
Adds a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
- Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/createBillingRoleAssignment
- Operation Id: BillingRoleAssignments_CreateByCustomer
- Default Api Version: 2024-04-01
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingRoleAssignmentData>> CreateByCustomerBillingRoleAssignmentAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Billing.Models.BillingRoleAssignmentProperties billingRoleAssignmentProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateByCustomerBillingRoleAssignmentAsync : Azure.WaitUntil * Azure.ResourceManager.Billing.Models.BillingRoleAssignmentProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingRoleAssignmentData>>
override this.CreateByCustomerBillingRoleAssignmentAsync : Azure.WaitUntil * Azure.ResourceManager.Billing.Models.BillingRoleAssignmentProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingRoleAssignmentData>>
Public Overridable Function CreateByCustomerBillingRoleAssignmentAsync (waitUntil As WaitUntil, billingRoleAssignmentProperties As BillingRoleAssignmentProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of BillingRoleAssignmentData))
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- billingRoleAssignmentProperties
- BillingRoleAssignmentProperties
The properties of the billing role assignment.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
billingRoleAssignmentProperties
is null.
Applies to
Azure SDK for .NET