Coder Social home page Coder Social logo

christopherhouse / azure-api-management-stv1 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 8 KB

This repo contains an example Bicep template that can be used to deploy an Azure API management resource that uses the stv1 compute platform.

License: MIT License

Bicep 100.00%

azure-api-management-stv1's Introduction

๐Ÿš€ Deploying Azure API Management on stv1 Compute Platform

On Aug. 31, 2024, the stv1 version of Azure API Management's compute platform is being retired. Customers who have not migrated to stv2 by this date may face outages. As you work to prepare for the migration, you may find it useful to be able to deploy stv1 APIM resources so you can test your migration strategy. While it is no longer possible to provision an stv1 resource in the Azure portal, it is possible with ARM/Bicep. When you create your template, you must configure your APIM resource to use Internal vnet mode and you must not assign a public IP address to the APIM resource. The Bicep template in this repo will help you deploy an stv1 APIM resource in a VNet. You can optionally provide an existing subnet or have the template create a new vnet/subnet.

Guidance on how to migrate from stv1 to stv2 can be found here.

Caveat: While this loophole to provision stv1 compute works today, I don't have any insight how much longer it will work.

๐Ÿ—๏ธ Azure Resources

The Bicep template will deploy the following Azure resources:

  • Azure API Management (APIM) service
  • Virtual Network (VNet) and Subnet (optional)

๐Ÿ“ How to Use

You can deploy the Bicep template using Azure CLI or PowerShell.

Azure CLI

az deployment group create --name ExampleDeployment --resource-group ExampleGroup --template-file ./infrastructure/main.bicep --parameters apimServiceName=ExampleAPIM location=westus2 skuName=Developer skuCapacity=1 subnetResourceId=/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet/subnets/subnet provisionVnet=false publisherName=ExamplePublisher [email protected]

PowerShell

New-AzResourceGroupDeployment -Name ExampleDeployment -ResourceGroupName ExampleGroup -TemplateFile ./infrastructure/main.bicep -apimServiceName ExampleAPIM -location westus2 -skuName Premium -skuCapacity 3 -provisionVnet $true -publisherName ExamplePublisher -publisherEmail example@example.com

๐Ÿ“š Parameters

Parameter Description Default
apimServiceName The name of the APIM service.
location The location of the resources.
skuName The pricing tier of the APIM service. Allowed values: 'Developer', 'Premium'. 'Developer'
skuCapacity The capacity of the APIM service. Only applicable for Premium SKU. 1
subnetResourceId The resource ID of the subnet. Do not set this parameter if you set provisionVnet to true ''
provisionVnet Whether to provision a new VNet and subnet. false. Do not set this to true if you provide a value for subnetResourceId
publisherName The name of the publisher.
publisherEmail The email of the publisher.

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

azure-api-management-stv1's People

Contributors

christopherhouse avatar

Stargazers

Josรฉ Medeiros avatar

Watchers

 avatar

Forkers

johnbilliris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.