The provided location 'eastus2' is not available for resource type 'Microsoft.Communication/CommunicationServices'

Ashish Bhagchandani 0 Reputation points
2024-04-29T20:37:03.5166667+00:00

I want to setup Azure Communication Services using CLI. Therefore, using az communication create command with the --data-location as global. It is giving me following error

(LocationNotAvailableForResourceType) The provided location 'eastus2' is not available for resource type 'Microsoft.Communication/CommunicationServices'. List of available regions for the resource type is 'global'.

Code: LocationNotAvailableForResourceType

Message: The provided location 'eastus2' is not available for resource type 'Microsoft.Communication/CommunicationServices'. List of available regions for the resource type is 'global'.

My resource is in location US East 2.

How can I solve this error?

Thanks!

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
706 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Raviraj Nallasivam 170 Reputation points
    2024-04-30T01:38:38.9666667+00:00

    There is difference between Data Location and Location. Please refer this link https://learn.microsoft.com/en-us/cli/azure/communication?view=azure-cli-latest#az-communication-create for more details

    For the list of data locations, refer this link https://learn.microsoft.com/en-us/azure/communication-services/concepts/privacy#data-residency

    Please pass the right values for Data Location and Location parameters.

    Accept this answer if it solves your problem.

    0 comments No comments

  2. SnehaAgrawal-MSFT 18,701 Reputation points
    2024-05-01T07:02:12.16+00:00

    @Ashish Bhagchandani Thanks for reaching here! As its mentioned here- https://learn.microsoft.com/en-us/azure/communication-services/concepts/privacy#data-residency

    When creating an Azure Communication Services resource, you specify a geography (not an Azure data center). All chat messages, and resource data stored by Communication Services at rest are retained in that geography, in a data center selected internally by Communication Services. Data may transit or be processed in other geographies. These global endpoints are necessary to provide a high-performance, low-latency experience to end-users no matter their location- The list of geographies you can choose from includes:

    • Africa
    • Asia Pacific
    • Australia
    • Brazil
    • Canada
    • Europe
    • France
    • Germany
    • India
    • Japan
    • Korea
    • Norway
    • Switzerland
    • United Arab Emirates
    • United Kingdom
    • United States

    For creating Azure communication services using CLI use below command-

    az communication create --name "<acsResourceName>" --location "Global" --data-location "United States" --resource-group "<resourceGroup>"
    
    
    

    Hope this helps.

    Let us know if further query.

    0 comments No comments