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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With