{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/3143","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/3143/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/3143/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/3143/events","html_url":"https://github.com/Azure/azure-powershell/issues/3143","id":185539977,"number":3143,"title":"[AzureChinaCloud] New-AzureRmApiManagement fails with error \"NoRegisteredProviderFound\" in AzureChinaCloud","user":{"login":"Pradebban","id":13054214,"avatar_url":"https://avatars.githubusercontent.com/u/13054214?v=3","gravatar_id":"","url":"https://api.github.com/users/Pradebban","html_url":"https://github.com/Pradebban","followers_url":"https://api.github.com/users/Pradebban/followers","following_url":"https://api.github.com/users/Pradebban/following{/other_user}","gists_url":"https://api.github.com/users/Pradebban/gists{/gist_id}","starred_url":"https://api.github.com/users/Pradebban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pradebban/subscriptions","organizations_url":"https://api.github.com/users/Pradebban/orgs","repos_url":"https://api.github.com/users/Pradebban/repos","events_url":"https://api.github.com/users/Pradebban/events{/privacy}","received_events_url":"https://api.github.com/users/Pradebban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-26T23:51:18Z","updated_at":"2016-10-27T23:07:43Z","closed_at":null,"body":"### Cmdlet(s)\r\n\r\n### PowerShell Version\r\n\r\nPSVersion                      4.0\r\n\r\n### Module Version\r\n\r\nBuildVersion                   6.3.9600.17400\r\n\r\n### Description\r\n\r\nFollowing is the error i get when trying to provision a new API Management Instance.\r\n\r\nNew-AzureRmApiManagement -ResourceGroupName Pradebban -Name pradebban -Location \"China East\" -Organization \"Own\" -\r\nAdminEmail \"pradebban@hotmail.com\" -Sku Standard -Capacity 2\r\n\r\nNew-AzureRmApiManagement : **NoRegisteredProviderFound**: No registered resource provider found for location 'China East' and API version\r\n'2016-07-07' for type 'service'. The supported api-versions are '2014-02-14, 2015-09-15'. The supported locations are 'chinaeast,\r\nchinanorth'.\r\nAt line:1 char:1\r\n+ New-AzureRmApiManagement -ResourceGroupName pradebban -Name pradebban -Location  ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : CloseError: (:) [New-AzureRmApiManagement], CloudException\r\n    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ApiManagement.Commands.NewAzureApiManagement\r\n\r\n### Debug Output\r\n\r\nDEBUG: ============================ HTTP REQUEST ============================\r\n\r\nHTTP Method:\r\nPUT\r\n\r\nAbsolute Uri:\r\nhttps://management.chinacloudapi.cn/subscriptions/xxxxxxx-49a6-42bf-9300-xxxxxxx/resourceGroups/pradebban/providers/Microsoft.ApiMana\r\ngement/service/pradebban?api-version=2016-07-07\r\n\r\nHeaders:\r\n\r\nBody:\r\n{\r\n  \"location\": \"ChinaEast\",\r\n  \"properties\": {\r\n    \"publisherEmail\": \"PRADEBBAN@HOTMAIL.COM\",\r\n    \"publisherName\": \"own\",\r\n    \"createdAtUtc\": \"0001-01-01T00:00:00\",\r\n    \"hostnameConfigurations\": [],\r\n    \"vpnType\": \"None\"\r\n  },\r\n  \"sku\": {\r\n    \"name\": \"Standard\",\r\n    \"capacity\": 2\r\n  }\r\n}\r\n\r\nDEBUG: ============================ HTTP RESPONSE ============================\r\n\r\nStatus Code:\r\nBadRequest\r\n\r\nHeaders:\r\nPragma                        : no-cache\r\nx-ms-failure-cause            : gateway\r\nx-ms-request-id               : 1d08fe3b-db97-46e3-bc9e-xxxxxxxxx\r\nx-ms-correlation-request-id   : 1d08fe3b-db97-46e3-bc9e-xxxxxxxxx\r\nx-ms-routing-request-id       : CHINAEAST:20161026T234611Z:xxxxxx-db97-46e3-bc9e-0bde05919f09\r\nStrict-Transport-Security     : max-age=31536000; includeSubDomains\r\nCache-Control                 : no-cache\r\nDate                          : Wed, 26 Oct 2016 23:46:10 GMT\r\n\r\nBody:\r\n{\r\n  \"error\": {\r\n    \"code\": \"NoRegisteredProviderFound\",\r\n    \"message\": \"No registered resource provider found for location 'ChinaEast' and API version '2016-07-07' for type 'service'. The\r\nsupported api-versions are '2014-02-14, 2015-09-15'. The supported locations are 'chinaeast, chinanorth'.\"\r\n  }\r\n}\r\n\r\nNew-AzureRmApiManagement : NoRegisteredProviderFound: No registered resource provider found for location 'ChinaEast' and API version\r\n'2016-07-07' for type 'service'. The supported api-versions are '2014-02-14, 2015-09-15'. The supported locations are 'chinaeast,\r\nchinanorth'.\r\nAt line:1 char:1\r\n+ New-AzureRmApiManagement -ResourceGroupName pradebban -Name pradebban -Location  ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : CloseError: (:) [New-AzureRmApiManagement], CloudException\r\n    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ApiManagement.Commands.NewAzureApiManagement\r\n\r\nDEBUG: 11:46:10 PM - NewAzureApiManagement end processing.\r\nDEBUG: 11:46:10 PM - NewAzureApiManagement end processing.\r\n\r\n### Script/Steps for Reproduction\r\n\r\n1. Login-AzureRmAccount -EnvironmentName \"AzureChinaCloud\"\r\n2. Select-AzurermSubscription\r\n3. New-AzureRmApiManagement -ResourceGroupName Pradebban -Name pradebban -Location \"China East\" -Organization \"Own\" -\r\nAdminEmail \"pradebban@hotmail.com\" -Sku Standard -Capacity 2\r\n\r\nThanks,\r\nPradebban Raja"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/256795109","html_url":"https://github.com/Azure/azure-powershell/issues/3143#issuecomment-256795109","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/3143","id":256795109,"user":{"login":"markcowl","id":1054056,"avatar_url":"https://avatars.githubusercontent.com/u/1054056?v=3","gravatar_id":"","url":"https://api.github.com/users/markcowl","html_url":"https://github.com/markcowl","followers_url":"https://api.github.com/users/markcowl/followers","following_url":"https://api.github.com/users/markcowl/following{/other_user}","gists_url":"https://api.github.com/users/markcowl/gists{/gist_id}","starred_url":"https://api.github.com/users/markcowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markcowl/subscriptions","organizations_url":"https://api.github.com/users/markcowl/orgs","repos_url":"https://api.github.com/users/markcowl/repos","events_url":"https://api.github.com/users/markcowl/events{/privacy}","received_events_url":"https://api.github.com/users/markcowl/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T23:07:43Z","updated_at":"2016-10-27T23:07:43Z","body":"This is, unfortunately,  expected.  AzureChinaCliud is at least one version behind for every service"}}
{"actor":{"display_login":"markcowl"}}