Skip to content

Instantly share code, notes, and snippets.

@fabriciosanchez
Last active April 10, 2020 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabriciosanchez/a06ec2219a197b9658e0bf420debf3dd to your computer and use it in GitHub Desktop.
Save fabriciosanchez/a06ec2219a197b9658e0bf420debf3dd to your computer and use it in GitHub Desktop.
Creates a new APIM.
# Create an API Management VNET object
$apimVirtualNetwork = New-AzApiManagementVirtualNetwork -SubnetResourceId $apimsubnetdata.Id
# Create an API-M service inside the VNET
$apimServiceName = "aumanager-apim"
$apimOrganization = "Americas University"
$apimAdminEmail = "{alias}@americasuniversity.net"
$apimService = New-AzApiManagement `
-ResourceGroupName $resGroupName `
-Location $location `
-Name $apimServiceName `
-Organization $apimOrganization `
-AdminEmail $apimAdminEmail `
-VirtualNetwork $apimVirtualNetwork `
-VpnType "Internal" `
-Sku "Developer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment