Azure / pcs-cli

A CLI for deploying Azure IoT PCS
MIT License
33 stars 37 forks source link

The provided location 'chinanorth2' is not available for resource type 'Microsoft.Web/connections' #522

Closed lzyms closed 3 years ago

lzyms commented 5 years ago

Type of issue

Description

When running: pcs -t remotemonitoring -s basic, an error occured when do deployment validation. It returns the following error: Deployment validation failed: { "code": "LocationNotAvailableForResourceType", ✕ Error: {"code":"LocationNotAvailableForResourceType","message":"The provided location 'chinanorth2' is not available for resource type 'Microsoft.Web/connections'. List of available regions for the resource type is 'chinanorth,chinaeast'."}

Steps to reproduce

  1. pcs login -e AzureChinaCloud
  2. pcs -t remotemonitoring -s basic
  3. Select a location: China North 2

Expected behavior

Deployment validation succeed and go to the next step

Current behavior

Deployment validation failed and block the deployment process

Known workarounds

Change the location of 'Microsoft.Web/connections' in arm template.

  1. Find the 'variables' definition in basic-static-map.json
  2. Change "location": "[resourceGroup().location]" to "location": "chinanorth"

Possible solution

Set an available location for Microsoft.Web/connections

Context and Environment

• Operating System: Win10 1903 • GitHub branch: 51dacd2aa4 • Node.js Runtime: v10.16.0