CmdID / az / az spring / az spring gateway / az spring gateway route-config
az spring gateway route-config create
Create a gateway route config with routing rules of Json array format. Azure CLI extensions reference
1 example 3 options Its page in the Azure CLI extensions reference
Examples
Create a gateway route config targeting the app in Azure Spring Apps.
az spring gateway route-config create -s MyService -g MyResourceGroup --name MyName --app-name MyApp --routes-file MyJson.jsonIdentify-sThe name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>.-gName of resource group.--nameName of route config.--app-nameThe Azure Spring Apps app name to configure the route.--routes-fileThe file path of JSON array of API routes.Options
--app-nameThe Azure Spring Apps app name to configure the route.--routes-fileThe file path of JSON array of API routes.--routes-jsonThe JSON array of API routes.