Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A Same Name "Cloud Service" will be created when create "Virtual Machine" in Azure, can I delete it?

A same name "Cloud Service" will be created when create "Virtual Machine" in Azure.

My question is:

A: What is the same name "Cloud Service" for?

B: Can I delete the one exist in "Cloud Service", which is empty, no deployment in neither production nor stage.

C: If I delete it, will it effect "Virtual Machine" I created?

D: If I delete it, can I recreate it with the same name later?

like image 398
Eric Yin Avatar asked Sep 03 '12 19:09

Eric Yin


People also ask

How many virtual machines can I create in Azure?

Now you can create multiple identical VMs (up to 100) in Azure DevTest Labs from the same VM image and artifacts all at once, through the Azure portal.

Which Azure service is used to create VM instances?

Azure virtual machines (VMs) can be created through the Azure portal. This method provides a browser-based user interface to create VMs and their associated resources. This quickstart shows you how to use the Azure portal to deploy a virtual machine (VM) in Azure that runs Windows Server 2019.

How do I change my DNS name in Azure VM?

If you want to add your own custom domain for that Azure VM, you could add a CNAME type DNS record like somename.my.domain.com CNAME myvmname.northeurope.cloudapp.azure.com or A type record like somename.my.domain.com A your Azure VM public IP address in your DNS domain my.domain.com provider.

What is the relationship between Vnets and deploying new virtual machines?

They can connect even if they are in different subnets without the need to configure a gateway or use public IP addresses. To put VMs into a VNet, you create the VNet and then as you create each VM, you assign it to the VNet and subnet. VMs acquire their network settings during deployment or startup.


1 Answers

A. It's a wrapper for the deployment of the Virtual Machine and essentially the same construct you get for Web and Worker role deployment in the PaaS model.

When you create a new Virtual Machine from the portal, you actually won't see that there is a Cloud Service also created unless you switch back to the "old" Silverlight portal.

B. If the Cloud Service is empty, you don't really have a virtual machine running in it, so you can delete it.

Did you create an image from it (sysprep)? That would detach it from the Cloud Service, and because it's detached, the portal will now show you have an empty Cloud Service. The "new" portal used to show the "empty" Cloud Service, but I just tried it and it doesn't appear; although it does, of course, show up in the "old" portal.

The Cloud Service was always there, but the portal hides it when it thinks you don't need to know about it :). You'll will also see a Cloud Service in the "new" portal if you create a few 'connected VMs' because now the Service is more than a trivial wrapper for a single VM.

C. If the Cloud Service is showing now deployments, you can delete it without concern.

D. Sort of. Once you delete the Cloud Service, you can reuse that Cloud Service's name; however, if you decide to create another VM of the same name AND the assets for that VM - the image and/or disk remain, you may get a failure if you use the 'quick create' options. That's because those options will create names for the disk and image based off of the DNS (aka Cloud Service) name you provide. If the disk/image from the old VM are still around, you'll get a conflict and the creation will fail. It's not failing because of the Cloud Service name itself though.

You might find a blog post I did on VMs with CouchBase helpful, as I walk through a variety of scenarios and touch upon some of your questions. The fact it's CouchBase is secondary.

like image 119
Jim O'Neil Avatar answered Oct 05 '22 10:10

Jim O'Neil