Skip to content

Reservations and tags linking them #226

Closed Answered by bordera-randy
bordera-randy asked this question in Q&A
Discussion options

You must be logged in to vote

This was resolved and found to be an issue with the azcontext and a excluded subscription
below I have included the powershell script used to reserve the CIDR and create the resource group and vnet in Azure.

Set-AzContext "SUBID_HERE"

$size                   = "23"
$desc                  = "OPTIONAL_DESCRIPTION"
$vnet                   = "VNET_NAME_HERE"
$vnetresourcegroup      = "RESOURCE_GROUP_NAME_HERE"
$location               = "AZURE_LOCATION_HERE"

$space  = "SPACE_NAME_HERE"
$blocks = @("BLOCK_NAME_HERE")
$reverse_search = "false"
$smallest_cidr  = "True"

$engineClientId = 'ENGINE_CLIENTID_HERE'
$accessToken = ConvertTo-SecureString (Get-AzAccessToken -ResourceUrl api://$engineCl…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@bordera-randy
Comment options

@DCMattyG
Comment options

@bordera-randy
Comment options

@bordera-randy
Comment options

Answer selected by bordera-randy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants