By managing user subscriptions, administrators can control resource usage and provisioning, give users access to designated resources, and oversee billing and cost allocation.
Let’s dive into what subscriptions are and how to create and manage them in the context of Microsoft Azure Stack Hub for the AZ-600 exam.
What are User Subscriptions?
A user subscription in Azure Stack Hub represents an agreement between Azure and the users. It includes the terms and conditions that the users agree on during the sign-up process. Each user subscription in Azure contains information about the user, the offered resources, and the plan that the user has subscribed to.
How to Create User Subscriptions in Azure Stack Hub?
Creating a user subscription in Azure Stack Hub involves several steps.
Step 1: Sign in to Azure Stack Hub
First, you need to sign into the Azure Stack Hub portal as a service administrator.
Step 2: Create a New Subscription
Click on “New,” then “Subscriptions.”
Step 3: Fill in the Subscription Details
You need to fill in the fields like “Subscription Name,” “Offer,” “Subscriber’s User Principal Name,” among others.
Step 4: Review and Confirm
Lastly, review the details and click on “Create.”
Managing User Subscriptions
Management of your user subscriptions involves several activities. You can perform these operations by navigating to “Subscriptions” on the Azure Stack Hub portal.
Change the Owner
To change the owner of a subscription, select it from the subscription list and click on “Change Owner.” You can then enter the new owner’s principal name.
Deactivate a Subscription
You can deactivate a subscription when you no longer need it. Select the subscription and click on “Suspend” to deactivate it.
Delete a Subscription
Deletion is permanent, but you can also delete a subscription when it’s no longer needed. Once a subscription is cancelled, all resources are deleted and can’t be restored.
Monitoring User Subscriptions
As an administrator, you can monitor user subscriptions to manage accountability and usage. Azure Stack Hub provides features to monitor user subscriptions directly through the portal.
Usage
You can monitor the usage of user subscriptions. This can provide insights into how resources are being consumed.
Billing
Azure Stack Hub provides billing information of user’s subscriptions. This can help you manage and allocate costs associated with the consumed resources.
In conclusion, creating and managing user subscriptions in Azure Stack Hub isn’t just a necessary administrative task—it’s also a powerful tool for controlling resource usage and fostering accountability. By meticulously managing your user subscriptions, you can ensure your hybrid cloud environment is used effectively and cost-efficiently. Keep these tips in mind as you prepare for your AZ-600 exam, and remember to refer to the official Azure documentation for more details.
Practice Test
True or False: You can add multiple subscriptions at once in Microsoft Azure Stack Hub.
- True
- False
Answer: False
Explanation: You can only add one subscription at a time in Microsoft Azure Stack Hub.
Which of the following resource providers are used when creating user subscriptions in Azure Stack Hub?
- A. Network
- B. Subscription
- C. Storage
- D. Azure Resource Manager
Answer: D. Azure Resource Manager
Explanation: Azure Resource Manager (ARM) is used in creating user subscriptions in Azure Stack Hub. It is the management layer of Azure.
True or False: User subscriptions in Azure Stack Hub can’t be deleted.
- True
- False
Answer: False
Explanation: User subscriptions can be deleted in Azure Stack Hub. However, to delete a subscription, you must first delete all resources associated with that subscription.
In Azure Stack Hub, where do you create user subscriptions?
- A. Azure portal
- B. On the server
- C. In Azure DevOps
- D. PowerShell
Answer: A. Azure portal
Explanation: User subscriptions are created in the Azure portal.
Which of the following commands is used to create a plan in Azure Stack Hub using PowerShell?
- A. New-AzsPlan
- B. Set-AzsPlan
- C. Add-AzsPlan
- D. Add-AzureRmAccount
Answer: A. New-AzsPlan
Explanation: The PowerShell command New-AzsPlan is utilized to create a plan in Azure Stack Hub.
True or False: You can manage user subscriptions using the Azure portal.
- True
- False
Answer: True
Explanation: You can manage user subscriptions using the Azure portal. This includes tasks such as adding, deleting, or modifying subscriptions.
In order to create a user subscription in Azure Stack Hub, what resource must the Azure resource provider have?
- A. Virtual Machine
- B. Resource Group
- C. Plan
- D. Storage Account
Answer: C. Plan
Explanation: To create a user subscription, the Azure resource provider must have a plan.
True or False: It is possible to limit the number of resources a user can create within Azure Stack Hub.
- True
- False
Answer: True
Explanation: It is possible to limit the number of resources a user can create within Azure Stack Hub via quotas.
Which of the following is one of the main steps to create a user subscription in Azure Stack Hub?
- A. Create a Virtual Network
- B. Create a Storage Account
- C. Create an Offer
- D. Create a Resource Group
Answer: C. Create an Offer
Explanation: One of the main steps to create a user subscription in Azure Stack Hub is to create an Offer.
What PowerShell command is used to delete a subscription in Azure Stack Hub?
- A. Delete-AzsSubscription
- B. Remove-AzsSubscription
- C. Delete-Subscription
- D. Remove-Subscription
Answer: B. Remove-AzsSubscription
Explanation: Remove-AzsSubscription is the PowerShell command used to delete a subscription in Azure Stack Hub.
Interview Questions
What is Azure Stack Hub?
Azure Stack Hub is a hybrid cloud platform that lets you use Azure public cloud services in your company’s or service provider’s datacenter.
How can you create user subscriptions in Azure Stack Hub?
You can create user subscriptions in Azure Stack Hub by navigating to the Subscriptions pane in the Azure Stack Hub user portal and clicking on the “+Add” button.
Can you use the same methods to manage user subscriptions in Azure Stack as in Azure Stack Hub?
Yes, Azure Stack and Azure Stack Hub have a much similar approach, but there can be differences based on the scope or the scale of implementation.
How do you delete a subscription in Azure Stack Hub?
To delete a subscription, navigate to the subscription you want to delete, click on it, then click on the “Delete” button.
Can you assign ownership to a different user for a subscription in Azure Stack Hub?
Yes, ownership of a subscription can be moved to a different directory or assigned to another user by visiting the Subscriptions page and selecting the relevant options.
How many user subscriptions can be created within Azure Stack Hub?
There is no limit to how many user subscriptions can be created within Azure Stack Hub.
What is the purpose of an ‘Owner’ in Azure Stack Hub?
The ‘Owner’ in Azure Stack Hub has full access to all resources in the subscription, including the right to assign roles to others.
What can be done if a user exceeds the quota in Azure Stack Hub?
If a user exceeds their quota, they will need to request that an administrator increase their quota limit.
How to monitor user subscriptions in Azure Stack Hub?
User subscriptions in Azure Stack Hub can be monitored via the Azure Stack Hub Admin portal or through a usage API.
Can an Azure Stack Hub be integrated with an existing Azure Active Directory (AAD)?
Yes, Azure Stack Hub can be integrated with an existing Azure Active Directory (AAD) for subscription and user identity management.
Is it necessary to create a subscription before creating resources in Azure Stack Hub?
Yes, before a user can create resources, a cloud operator must offer them a subscription.
Can an Azure Stack Hub subscription have multiple directory tenants?
No, each subscription in Azure Stack Hub is associated with only one directory tenant.
What are the two fundamental things that control access to resources in Azure Stack Hub?
The two fundamental things that control access to resources in Azure Stack Hub are management tokens and role-based access control (RBAC).
How can you add co-administrators in Azure Stack Hub Subscription?
You can add co-administrators by going to subscription settings and then selecting ‘Manage administrators’ and ‘Add co-administrator.’
What is role-based access control (RBAC) in Azure Stack Hub?
Role-Based Access Control (RBAC) is a system that provides fine-grain control over what actions a user can perform on a given resource in Azure Stack Hub.