The billing owner for a user subscription decides to leave your organization for some personal reasons.
Being Azure Stack Hub Operator, you need to replace that user with some other user.
Which of the following cmdlet would you use in PowerShell to change the billing owner?
Click on the arrows to vote for the correct answer
A. B. C. D. E.Correct Answer: C.
Correct Answer: C
To know more about changing the billing owner, please visit the below-given link:
As an Azure Stack Hub Operator, to replace a billing owner for a user subscription, you can use the Set-AzsBillingOwner
cmdlet in PowerShell.
The Set-AzsBillingOwner
cmdlet is used to update the billing owner of a user subscription in Azure Stack Hub. It takes two parameters: SubscriptionId
and NewBillingOwner
.
Here's how you can use the Set-AzsBillingOwner
cmdlet to replace the billing owner for a user subscription:
Connect-AzsAccount
cmdlet and your operator credentials.Get-AzsUserSubscription
cmdlet to get the subscription ID of the user subscription you want to update. For example:shellPS> Get-AzsUserSubscription -DisplayName "User Subscription"
Set-AzsBillingOwner
cmdlet to update the billing owner for the subscription. For example:pythonPS> Set-AzsBillingOwner -SubscriptionId "12345678-90ab-cdef-ghij-klmnopqrstuv" -NewBillingOwner "new-billing-owner@contoso.com"
In the above example, replace the subscription ID with the actual ID of the user subscription you want to update, and replace the NewBillingOwner
parameter with the email address of the new billing owner.
Therefore, the correct answer to the question is D. Set-AzsBillingOwner.