Azure / pcs-cli

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

The provided location 'eastus2' is not available for resource type 'Microsoft.TimeSeriesInsights/environment' #523

Closed lzyms closed 3 years ago

lzyms commented 5 years ago

Type of issue

Description

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

Steps to reproduce

  1. pcs login -e AzureChinaCloud
  2. pcs -t remotemonitoring -s basic

Expected behavior

Deployment validation succeed and go to the next step

Current behavior

Deployment validation failed and block deployment process

Known workarounds

Change the default Value of 'tsiLocation' from 'eastus2' to 'chinanorth2' in arm template .

  1. Find the 'tsiLocation' definition in basic-static-map.json
  2. Change "defaultValue": "eastus2" to "defaultValue": "chinanorth2"
  3. Remove "allowValues" property

Possible solution

Change the default Value of 'tsiLocation' from 'eastus2' to 'chinanorth2' in arm template

Context and Environment

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