question

GSIMON-1049 avatar image
0 Votes"
GSIMON-1049 asked ·

Azure VM names

Hi,

I know I am new in Azure still, but I read the MS VM naming convention documentation and still cannot add valid VM name.

If I want to create a B2s size RHEL vm in the WestEurope region, I added my fancy name first, of course it does not work (vm-quay-we-rhel)
But I followed the explanation (https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions) , and I wrote: b4ms-v1 still not valid. Can you plz advice what name can be valid there?

Thank you!

azure-virtual-machines
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What error is it giving when you try to create a VM? Can you post screenshot?

0 Votes 0 ·
GSIMON-1049 avatar image GSIMON-1049 VaibhavChaudhari ·

the error message was the same in all case even if the name is not that what I mentioned before


[1]: /answers/storage/temp/80059-screenshot-from-2021-03-22-14-24-24.png

0 Votes 0 ·
AndriyBilous avatar image
0 Votes"
AndriyBilous answered ·

Hello @GSIMON-1049
You have custom Azure Policy "Restrict Public IP" that prevents creation of your VM
Please check restrictions in your custom Azure Policy
https://docs.microsoft.com/en-us/azure/governance/policy/overview

Launch the Azure Policy service in the Azure portal by selecting All services, then searching for and selecting Policy.
Select Assignments on the left side of the Azure Policy page. An assignment is a policy that has been assigned to take place within a specific scope.
https://docs.microsoft.com/en-us/azure/governance/policy/assign-policy-portal

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

yes this is the case, thank you for helping me to recognize.!

0 Votes 0 ·
VaibhavChaudhari avatar image
0 Votes"
VaibhavChaudhari answered ·

Looks like there is some policy set on the Resource group in which you are trying to create a VM. It should have policy set up in such a way that it won't allow you to access VM from Public IP address.

So while creating VM, you should configure VM not to use Public IP or connect with admin guy from your team to get more details around this


Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I will do this thank you!

0 Votes 0 ·