Visual Studio 2015 Upload Project to Cloud
Then for the few observant IT-pros, there has been a large fuzz effectually Azure and the new Azure Resources Manager, which is a new way to manage resources in Azure. In essence in a new architectutal design from Microsoft on how to manage IaaS resource.
Now to think nigh resource managing director, information technology is a unproblematic thing to think well-nigh unlike components that create a service which we desire to deliver.
For instance if we want to deliver a e-commerce webshop using Azure, nosotros would have multiple components like a DB-tier, Web-tier and peradventure an application-tier. So instead of creating these components inside a deject service, nosotros would create them inside a resource group in Azure.
Now Microsoft announced during Build a huge list of dissimilar templates that tin can become usa started with ARM. These templates comprise different JSON files that describe how a resource should be setup. This is essentially the version ii of IaaS resources in Azure, instead of being managed within a cloud services we instead have all the different resources which are attached together without thinking about the cloud services, which has ever been at that place because of the early days of PaaS.
You lot can find the unlike JSON templates here — https://github.com/Azure/azure-quickstart-templates
Which has a template for most of the different services included in Azure. Now we can too deploy resources directly from the GitHub repository, merely this blog postal service will focus on using Visual Studio. (The templates will be able to be used directly in the direction portal and y'all can just enter the paramteres as needed. )
This makes it easy to create a custom template for a deployment and reuse it for other customers for instance. You lot can also attach script which demand to exist run on a virtual car instnances that are created later provisioning.
Now you can download the templates from Microsoft either using the GitHub client for versioning or you can download using a Nil choice site. Using GitHub pick allows to always have the templates in sync, if there are changes so on.
Now in guild to apply Visual Studio and be able to utilise information technology with Resource managing director y'all need a supported version of VS (2012, 2013 or 2015 RC, ill be using RC 2015) and you also need a re-create of the latest Azure SDK which can be found here http://azure.microsoft.com/blog/2015/04/29/announcing-the-azure-sdk-2-6-for-net/
Now after you have installed both you lot should have a new option when creating a new project
If this is not appearing, information technology might be that you need to repair the installtion of the Azure SDK. Now later you create a new project you volition have the pick to choose from unlike templates that is provided with the SDK
Only i'1000 going to choose a blank template and add some resource and then use some of the different templates that Microsoft has created.
At present the project will exist created with some files. Yous accept the deploy azureresourcegroup powershell script which is used to actually create and deploy a resourcegroup using the templates files. Azcopy is used within the script to upload the template to a storage container.
Now by default the template is of form empty, and so we need to add some resource to information technology.
At present this also gives a list of resources that can be added to the template.
And then these templates likewise verify what prerequisites are needed to the tempalte
Nosotros can now also see that when we added a storage account, virtual network and a virtual machine a bunch of paramteres are added to the JSON template
If nosotros drill into some of the paramteres we can encounter what kind of values are allowed. For instance on StorageAccountType
We can meet that the default value for the Storage Account is Locally redundant in the template, we can alter the value if nosotros want to. These we need to chage earlier deploying information technology. For instance also VM username and password are not set and we need to ascertain those values before deploying it or else the deployment will fail.,
Then we also have some variables that nosotros can alter, for instance vNet subnet prefix and IP prenix.
After we are done adding our components and defining our variables and paramteres to the project we can deploy it by right clicking on the resource grouping in the solution explorer and choosing new deployment
Then cull a Microsoft Azure business relationship and a valid subscription
And then choose Deploy, make sure to follow on the output window in Visual Studio to make certain that yous dont get whatsoever error messages. Considering information technology will validate the paramteres that are inserted to see if they comply or if you lot hare missing whatever data.
Notation: y'all will also become this dialog box if in that location are some paramters that are non entered
At present after we accept deployed the resource group template we tin verify that information technology is there by going into the Azure Portal and looking into the resource grouping
Now that the resources group is there, if we need to do any updates like for instance alter a virtual machine case size we tin can merely update the project and re-deplopy it, it will then update the virtual motorcar.
But note that this is still under preview and should not be used in production stuff in Azure quite yet, and using templates from GitHub for some reason the JSON outline view does not appear.
lovelessoperepien37.blogspot.com
Source: https://msandbu.wordpress.com/2015/05/22/getting-started-with-azure-resource-manager-and-visual-studio/
0 Response to "Visual Studio 2015 Upload Project to Cloud"
Post a Comment