Invoke-RestMethod -Uri "" -Method Post -Headers $Header -Body ($Body | ConvertTo-Json -Depth 5) "sslCertificate" = "-BEGIN CERTIFICATE-" "id" = "/subscriptions/1x11x11x-11x1-111x-1x11-11111111x11x/resourceGroups/rg-network-horizoncloud/providers/Microsoft.Network/virtualNetworks/vnet-westeurope-horizoncloud/subnets/snet-workload-prd" "id" = "/subscriptions/1x11x11x-11x1-111x-1x11-11111111x11x/resourceGroups/rg-network-horizoncloud/providers/Microsoft.Network/virtualNetworks/vnet-westeurope-horizoncloud/subnets/snet-mgmt" "data" = "/subscriptions/1x11x11x-11x1-111x-1x11-11111111x11x/resourceGroups/rg-network-horizoncloud/providers/Microsoft.Network/virtualNetworks/vnet-westeurope-horizoncloud" "id" = "/subscriptions/1x11x11x-11x1-111x-1x11-11111111x11x/resourceGroups/rg-network-horizoncloud/providers/Microsoft.Network/virtualNetworks/vnet-westeurope-horizoncloud/subnets/snet-dmz" "Authorization" = "Bearer " + $AccessToken With this information we will now construct the lines of code in PowerShell to add the Unified Access Gateway configuration. The required networks/subnets required for the UAG deployment The SSL certificate used for the UAG deployment The minumum and maximum number of UAGs to deploy The provider instance used for deploying the UAGs The type of UAG deployment, either internal or external The fully qualified domain name for the UAG deployment For this we will use the following information: HTTP Method We will start by creating a Unified Access Gateway deployment. The original VMware documentation for Unified Access Gateway operations can be found here. Since Azure is the only provider type supported at the time of writing this chapter, that’s the one we currently focusing on. We will use PowerShell to execute the requests. In this chapter we will add, get and delete Unified Access Gateway deployments. This blog post is part of the VMware Horizon Cloud Service Next-Gen – The Automation Series, a series of blog posts that describes the possibilities and use of the VMware Horizon Cloud Service Next-Gen APIs.
0 Comments
Leave a Reply. |