Join Bhargav Shukla for an in-depth discussion in this video Register Azure Stack, part of Microsoft Azure Stack First Look.
- [Narrator] After successful deployment of Azure Stack, there are a few administrative tasks that must be performed. While not mandatory, it is recommended to change the password policy from default 42 to 180 days. I am going to change the password policy as recommended. To do so, I'll issue set-addefaulydomainpasswordpolicy commandlet from powershell.
Once the policy is set, I can verify the effective policy by running get-addefaultdomainpasswordpolicy. Here I can ensure max password age parameter reflects 180 days. Next I need to activate administrator and tenant portals. The portals require permissions such as ability to sign in, read user profile, read directory data, and access directory as the signed-in user.
The permissions allow portal to perform tasks based on user permissions. You can activate portals from either the Azure Stack host or from the console computer. The console computer is named mas-con01, which is created during the Azure Stack deployment. I will activate the portals from the Azure Stack host. From the browser, I will connect to admin portal. Here I have a login as the Azure Stack admin.
After successful login, I'm presented with permissions page. Once I review required permissions and accept, the portal will configure necessary permissions and gain appropriate access. Once the configuration is successful, I am now presented with the admin portal. Next, I will repeat the process with tenant portal. The experience is similar for both portals, but the component that require permissions might differ slightly.
Once complete, I am logged in to tenant portal. Next, I need to register Azure Stack with Azure. This allows me to download marketplace items from Azure and setup commerce data recording to Microsoft. To register Azure Stack with Azure, I need an active Azure Stack subscription and subscription ID. The username and password for the account owner, and the Azure ID information for the subscription is also required.
Registering Azure Stack incurs no cost on the Azure subscription. To register the stack, I must first download the script provided by Microsoft. I also need to install powershell for Azure Stack. First, I will download the script and save it locally. To download the script from the webpage, I will click raw option. This allows me to copy plain text without any formatted text. I will now copy the text and save it to a file called RegisterWithAzure.ps1.
Since I created the text file it has an incorrect extension instead of a powershell script. I will remove the extension to make sure the file is saved with correct extension. Before I run this script, I need to install powershell for Azure Stack. To install powershell for Azure Stack, I need to install appropriate powershell modules. First, I will install Azure RM bootstrapper module. This module contains commands that are required to work with API version profiles used be Azure Stack.
From powershell, I will run install-module to install azurerm.bootstrapper. When prompted, I will respond yes to trust the repository where I am downloading the module from. After the installation completes, I will import the API version profile required by Azure Stack. This profile will install required Azure RM modules including compute, storage, network and others.
From powershell, I will issue the command use-azurermprofile. I will accept the prompt to install selected module from the gallery, and trust the repository. Next, I need to install Azure Stack module. Currently, only version 1.2.9 is supported with Azure Stack.
I will download the required version. From powershell, I will run the install-module commandlet. Once again, I will accept the prompt and trust the repository from where the module is being downloaded. This completes the installation of required components for powershell from Azure Stack. I've already gathered required subscription information for the script.
I have the script required to register Azure Stack to Azure and have installed required powershell modules. I can now register Azure Stack with Azure. Since administrative permissions are required, I will launch the script from elevated powershell session.
I will provide the password for the subscription owner account and continue. The script will perform necessary configuration. After configuring local identity and completing registration with Azure Stack, I will be prompted for credentials of Microsoft Azure account again. This is because this step can be performed from a different machine if desired. I will continue here at the first prompt and I will allow data collection at the next prompt.
Next, I will provide my credentials. At the next prompt, I will confirm and proceed with the registration. On the next prompt, I will press enter to confirm and continue. And finally, the Azure Stack is registered successfully with my Azure subscription. I can now use marketplace offerings from Azure Stack.
- What is Azure Stack?
- Technical requirements
- Preparing an Azure Stack host
- Deploying Azure Stack
- Registering Azure Stack
- Deploying a virtual machine
- Using Azure Marketplace