-
- Novice
- Posts: 7
- Liked: 3 times
- Joined: Nov 25, 2020 6:23 pm
- Contact:
Restore to Azure with no NSG
Does anyone know if there is a way to do a restore to Azure in the PowerShell console, and not associate a network security group? So far I've had to do the restore with an NSG, then use the Az module to disassocate the NSG. We have a large number of restores to do and it would save time if we could skip that second step. Thanks.
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: Restore to Azure with no NSG
The 'NetworkSecurityGroup' parameter is optional, it is not required for a restore to Azure using PowerShell.
You can see this in the examples on the cmdlet documentation page, or also in other demos that we have done in the past.
You can see this in the examples on the cmdlet documentation page, or also in other demos that we have done in the past.
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
-
- Novice
- Posts: 7
- Liked: 3 times
- Joined: Nov 25, 2020 6:23 pm
- Contact:
Re: Restore to Azure with no NSG
Thanks for the quick reply, but without specifying the parameter, one is still created and associated with the netowrk interface. What we want is an interface without any assocated NSG. So for example, with no "NetworkSecurityGroup" parameter, the restore does this:
AzureVM Name = "restoredvm01"
NetworkSecurityGroup = "restoredvm01netsecuritygroup"
We are going to use NSG's at the subnet level, and do not want one associated with any of the VM interfaces.
AzureVM Name = "restoredvm01"
NetworkSecurityGroup = "restoredvm01netsecuritygroup"
We are going to use NSG's at the subnet level, and do not want one associated with any of the VM interfaces.
-
- Product Manager
- Posts: 20400
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Restore to Azure with no NSG
Correct, if you do not specify a network security group, backup server will automatically create a new one, allow RDP and SSH on it and connect network interfaces to it, this is done to guarantee that restored VM is accessible.
Currently, there is no way to bypass this behaviour, but thank you for your feedback, it's been taken into account.
Currently, there is no way to bypass this behaviour, but thank you for your feedback, it's been taken into account.
-
- Novice
- Posts: 7
- Liked: 3 times
- Joined: Nov 25, 2020 6:23 pm
- Contact:
Re: Restore to Azure with no NSG
OK, thanks very much. We'll stick with using the Az module to dis-associate the NSG after restore completes.
Who is online
Users browsing this forum: No registered users and 18 guests