Post-Installation Configuration Contd (Approx 1 hour 20 mins)

Deploy a Test VM (Approx 2 hours)

a. Create a PLAN, and an OFFER that can be used for deployments

b. Set the offer state to “public”

c. Subscribe to the OFFER

d. Deploy a test VM

Other Useful Information

a. Connect to your Azure Stack using PowerShell
# Replace <AZURE_AD_GLOBAL_ADMIN_PASSWORD> with the password of your Azure AD Global Admin
# Replace "<AZURE_AD_TENANT>" with the username of your Azure AD Global Admin E.g. "doazurestack@whatever.onmicrosoft.com"
# Replace "<AZURE_AD_GLOBAL_ADMIN>" with the username of your Azure AD Global Admin E.g. "doazurestack@whatever.onmicrosoft.com"
Import-Module C:\AzureStack-Tools-master\Connect\AzureStack.Connect.psm1
$Password = ConvertTo-SecureString "<AZURE_AD_GLOBAL_ADMIN_PASSWORD>" -AsPlainText -Force
Add-AzureRmEnvironment -Name AzureStack -ArmEndpoint https://management.local.azurestack.external
$TenantID = Get-AzsDirectoryTenantID -AADTenantName "<AZURE_AD_TENANT>" -EnvironmentName AzureStack
$Cred = New-Object System.Management.Automation.PSCredential("<AZURE_AD_GLOBAL_ADMIN>",$Password)
Login-AzureRmAccount -EnvironmentName "AzureStack" -TenantId $TenantID -Credential $Cred

b. Verify and select subscription

Get-AzureRmSubscription
Get-AzureRmLocation
$subscriptionid = (Get-AzureRmSubscription -SubscriptionName 'Virtual Machines1').SubscriptionId
Select-AzureRMSubscription -SubscriptionID $Subscriptionid

 

Leave a Reply

Your email address will not be published. Required fields are marked *