Book Image

Building Hybrid Clouds with Azure Stack

Book Image

Building Hybrid Clouds with Azure Stack

Overview of this book

Azure Stack is all about creating fewer gaps between on-premise and public cloud application deployment. Azure Stack is the logical progression of Microsoft Cloud Services to create a true hybrid cloud-ready application. This book provides an introduction to Azure Stack and the cloud-first approach. Starting with an introduction to the architecture of Azure Stack, the book will help you plan and deploy your Azure Stack. Next, you will learn about the network and storage options in Azure Stack and you'll create your own private cloud solution. Finally, you will understand how to integrate public cloud using the third-party resource provider. After reading the book, you will have a good understanding of the end-to-end process of designing, offering, and supporting cloud solutions for enterprises or service providers.
Table of Contents (19 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Deploying a VM using ARM template


As mentioned in the section Resource Manager template, there are several ways to prepare and especially deploy ARM templates. As we have focused on PowerShell we will continue to do so. To deploy the template to Azure Stack you have to be connected to your Azure Stack environment. We will use the vmdeploy.json and the parameter.vmdeploy.json holding to create the VM. First upload the vmdeploy.json and the parametervmdeploy.json to your container. Please follow the steps:

  1. Using PowerShell create a new container for the temporary JSON files:
$RG = Get-AzureRmResourceGroup -Name 'DEV-AST2'$storeaccount = $RG | Get-AzureRmStorageAccount -Name "stackvhds"$jsonContainer = New-AzureStorageContainer -Name vmdeploy
      -Permission Blob -Context $storeaccount.Context
  1. Upload the vmdeploy.json file to the container vmdeploy and do the same for the parameter vmdeploy.json file:
$vmdeploypath = $jsonContainer | Set-AzureStorageBlobContent
      -File "C:\instal\vmdeploy...