From my previous blog posts I have talked deep on Azure Stack, its overview, architecture and the business need of it.(here) also for a POC and testing prospective, I have provided step by step on how to deploy Azure Stack on a Azure VM(here). From this post I’m hoping explain how to deploy your first VM on Azure Stack.
For this demo I’m using my Azure Stack POC environment which created on an Azure VM. If you have, you can use that or physically deployed Azure Stack environment.
Before deploying a VM or creating a workload following configurations have to perform in Azure Stack and Azure tenant.
Microsoft recommend to register Azure Stack with an azure subscription to access and download items from marketplace and subscribe usage data back to Microsoft. TechNet state Azure stack development kit users will not be charged for any usage they report.
Before registration, you should have
Azure stack PowerShell should be installed to register the stack with Azure. There are two ways described in TechNet for installing
I followed the quick installation script. Login to the Azure Stack VM or connected computer to the Azure Stack
https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-configure-quickstart
Fill the Tenant name and run the PowerShell script as run as admin
RegisterWithAzure.ps1 -azureSubscriptionId YourID -azureDirectoryTenantName YourDirectory -azureAccountId YourAccountName
Example
C:\temp\RegisterWithAzure.ps1 -azureSubscriptionId "5e0ae55d-0b7a-47a3-afbc-8b372650abd3" `
-azureDirectoryTenantName "contoso.onmicrosoft.com" `
-azureAccountId [email protected]
When prompted provide the Subscription owner credentials
To test you have to login to the Admin portal - https://adminportal.local.azurestack.external
More services – Marketplace management – Add from Azure,
Now we have the access to the market place, before deploying the VM latest OS images can be downloaded from the market place. Also if you want your Azure Stack environment to run in a disconnected scenario use PowerShell to add the image (here)
That’s how you create a VM in Azure Stack
Hope this post is useful
Thanks
References
https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register