Open jdneo opened 6 years ago
@jdneo This is a limitation in the data center today. A resource group containing Linux app services cannot have Windows app services.
@jianghaolu yes I know there is a limitation.
From the code you can see I'm creating a new resource group, not an existing one. So there is no any app service plan in the resource group.
Same problem! applying this same procedure through the cloud user interface works just fine. It's as you say @jdneo : fresh resource group with only one consumption plan azure function.
This seems to be happening when you reuse a deleted group name.
It is not just the java library that is affected. The .net version of this library has the same characteristics.
@jianghaolu Do you need more information to help investigate this issue?
I also meet the same problem. I create a temporary resource group in CI test and delete them when test finished. And when i do the same test again, it shows The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one. OnError while emitting onNext value: retrofit2.Response.class
You may reproduce the problem in following steps:
maven-functions-it-rg-0
, you may use mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype
to create the project.mvn clean package
mvn azure-functions:deploy
(You may need az login first)@Flanker32 @DoubleCouponDay @jdneo Sorry for the delay. Can any of you provide a more detailed repro using the SDK or in HTTP request/response formats? I tried creating a function app, deleting the RG, and then create again and cannot repro the issue.
Trace:
[INFO] Authenticate with Azure CLI 2.0
[INFO] --> GET https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Web/sites/twhublinux-20180828074021453?api-version=2018-02-01
[INFO] Accept-Encoding: gzip
[INFO] accept-language: en-US
[INFO] Authorization: Bearer
[INFO] Connection: Keep-Alive
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Host: management.azure.com
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)
[INFO] x-ms-client-request-id: 44cfed8b-ce9f-4bb8-ab29-a1593081f390
[INFO] <-- 404 Not Found https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Web/sites/twhublinux-20180828074021453?api-version=2018-02-01 (628 ms, 107-byte body)
[INFO] Cache-Control: no-cache
[INFO] Content-Length: 107
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Date: Tue, 28 Aug 2018 08:58:44 GMT
[INFO] Expires: -1
[INFO] Pragma: no-cache
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: 0df0c9ca-379b-45ea-b5fc-6af47ca28aaf
[INFO] x-ms-failure-cause: gateway
[INFO] x-ms-request-id: 0df0c9ca-379b-45ea-b5fc-6af47ca28aaf
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085844Z:0df0c9ca-379b-45ea-b5fc-6af47ca28aaf
[INFO] 107-byte body:
{"error":{"code":"ResourceGroupNotFound","message":"Resource group 'twhublinuxgroup' could not be found."}}
[INFO] <-- END HTTP
[INFO] The specified function app does not exist. Creating a new function app...
[INFO] --> HEAD https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourcegroups/twhublinuxgroup?api-version=2017-05-10
[INFO] Accept-Encoding: gzip
[INFO] accept-language: en-US
[INFO] Authorization: Bearer
[INFO] Connection: Keep-Alive
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Host: management.azure.com
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (ResourceManagementClient, 2017-05-10)
[INFO] x-ms-client-request-id: 9e13a78d-9ddc-4b4e-ad0a-1968b8dfe51d
[INFO] <-- 404 Not Found https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourcegroups/twhublinuxgroup?api-version=2017-05-10 (19 ms, 0-byte body)
[INFO] Cache-Control: no-cache
[INFO] Content-Length: 107
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Date: Tue, 28 Aug 2018 08:58:44 GMT
[INFO] Expires: -1
[INFO] Pragma: no-cache
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: 1ddacf16-3e70-4de0-b321-7fd00a319c1c
[INFO] x-ms-failure-cause: gateway
[INFO] x-ms-ratelimit-remaining-subscription-reads: 11998
[INFO] x-ms-request-id: 1ddacf16-3e70-4de0-b321-7fd00a319c1c
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085844Z:1ddacf16-3e70-4de0-b321-7fd00a319c1c
[INFO] 0-byte body:
[INFO] <-- END HTTP
[INFO] --> PUT https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourcegroups/twhublinuxgroup?api-version=2017-05-10
[INFO] Accept-Encoding: gzip
[INFO] accept-language: en-US
[INFO] Authorization: Bearer
[INFO] Connection: Keep-Alive
[INFO] Content-Length: 21
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Host: management.azure.com
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (ResourceManagementClient, 2017-05-10)
[INFO] x-ms-client-request-id: bf562c41-516c-47b4-8692-211aa105c9db
[INFO] 21-byte body:
{"location":"westus"}
[INFO] --> END PUT
[INFO] <-- 201 Created https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourcegroups/twhublinuxgroup?api-version=2017-05-10 (1075 ms, 183-byte body)
[INFO] Cache-Control: no-cache
[INFO] Content-Length: 183
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Date: Tue, 28 Aug 2018 08:58:45 GMT
[INFO] Expires: -1
[INFO] Pragma: no-cache
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: 5ecac8fd-23c3-4ead-b70b-cf85f1eb5877
[INFO] x-ms-ratelimit-remaining-subscription-writes: 1198
[INFO] x-ms-request-id: 5ecac8fd-23c3-4ead-b70b-cf85f1eb5877
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085846Z:5ecac8fd-23c3-4ead-b70b-cf85f1eb5877
[INFO] 183-byte body:
{"id":"/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup","name":"twhublinuxgroup","location":"westus","properties":{"provisioningState":"Succeeded"}}
[INFO] <-- END HTTP
[INFO] --> PUT https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Storage/storageAccounts/b8140bc1d54f4cf9b231?api-version=2017-10-01
[INFO] Accept-Encoding: gzip
[INFO] accept-language: en-US
[INFO] Authorization: Bearer
[INFO] --> PUT https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Web/serverfarms/ec48a50ce5094aeda804a7cf480eaaac?api-version=2018-02-01
[INFO] Connection: Keep-Alive
[INFO] Accept-Encoding: gzip
[INFO] Content-Length: 78
[INFO] accept-language: en-US
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Authorization: Bearer
[INFO] Host: management.azure.com
[INFO] Connection: Keep-Alive
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (StorageManagementClient, 2017-10-01)
[INFO] x-ms-client-request-id: bab35fde-2859-48b4-898c-c3c59b949eae
[INFO] Content-Length: 93
[INFO] 78-byte body:
{"sku":{"name":"Standard_GRS"},"kind":"Storage","location":"westus","tags":{}}
[INFO] Content-Type: application/json; charset=utf-8
[INFO] --> END PUT
[INFO] Host: management.azure.com
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)
[INFO] x-ms-client-request-id: 91b76cf7-540a-4705-87b5-3ce22a6af095
[INFO] 93-byte body:
{"location":"westus","tags":{},"sku":{"name":"Y1","tier":"Dynamic","size":"Y1"},"kind":"app"}
[INFO] --> END PUT
[INFO] <-- 202 Accepted https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Storage/storageAccounts/b8140bc1d54f4cf9b231?api-version=2017-10-01 (1054 ms, 0-byte body)
[INFO] Cache-Control: no-cache
[INFO] Content-Length: 0
[INFO] Content-Type: text/plain; charset=utf-8
[INFO] Date: Tue, 28 Aug 2018 08:58:46 GMT
[INFO] Expires: -1
[INFO] Location: https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01
[INFO] Pragma: no-cache
[INFO] Retry-After: 17
[INFO] Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: ef3aa0ee-69e4-4125-aca0-84025e0a3cf0
[INFO] x-ms-ratelimit-remaining-subscription-writes: 1197
[INFO] x-ms-request-id: a6951992-9ca1-4006-a1d5-14f93f15405f
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085847Z:ef3aa0ee-69e4-4125-aca0-84025e0a3cf0
[INFO] 0-byte body:
[INFO] <-- END HTTP
[INFO] --> GET https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01
[INFO] Accept-Encoding: gzip
[INFO] Authorization: Bearer
[INFO] Connection: Keep-Alive
[INFO] Host: management.azure.com
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (StorageManagementClient, 2017-10-01)
[INFO] x-ms-client-request-id: 2a294aa8-cc12-497a-aa45-11499c58faa7
[INFO] <-- 400 Bad Request https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Web/serverfarms/ec48a50ce5094aeda804a7cf480eaaac?api-version=2018-02-01 (1142 ms, 922-byte body)
[INFO] Cache-Control: no-cache
[INFO] Content-Length: 922
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Date: Tue, 28 Aug 2018 08:58:46 GMT
[INFO] Expires: -1
[INFO] Pragma: no-cache
[INFO] Server: Microsoft-IIS/10.0
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] X-AspNet-Version: 4.0.30319
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: a5741769-9b49-4a0d-bf24-5bd6cda86602
[INFO] x-ms-ratelimit-remaining-subscription-writes: 1198
[INFO] x-ms-request-id: a5741769-9b49-4a0d-bf24-5bd6cda86602
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085847Z:a5741769-9b49-4a0d-bf24-5bd6cda86602
[INFO] X-Powered-By: ASP.NET
[INFO] 922-byte body:
{"Code":"BadRequest","Message":"The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.","Target":null,"Details":[{"Message":"The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one."},{"Code":"BadRequest"},{"ErrorEntity":{"ExtendedCode":"59314","MessageTemplate":"The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.","Parameters":[],"Code":"BadRequest","Message":"The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one."}}],"Innererror":null}
[INFO] <-- END HTTP
[INFO] <-- 202 Accepted https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01 (147 ms, 0-byte body)
[INFO] Cache-Control: no-cache
[INFO] Content-Length: 0
[INFO] Content-Type: text/plain; charset=utf-8
[INFO] Date: Tue, 28 Aug 2018 08:58:47 GMT
[INFO] Expires: -1
[INFO] Location: https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01
[INFO] Pragma: no-cache
[INFO] Retry-After: 17
[INFO] Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: 6ead5ba2-27bb-4ba2-8479-91b0b667facf
[INFO] x-ms-ratelimit-remaining-subscription-reads: 11997
[INFO] x-ms-request-id: 04545f99-2c94-4ac8-9ae7-7300e779d51a
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085847Z:6ead5ba2-27bb-4ba2-8479-91b0b667facf
[INFO] 0-byte body:
[INFO] <-- END HTTP
[INFO] --> GET https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01
[INFO] Accept-Encoding: gzip
[INFO] Authorization: Bearer
[INFO] Connection: Keep-Alive
[INFO] Host: management.azure.com
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (StorageManagementClient, 2017-10-01)
[INFO] x-ms-client-request-id: 8a82a28c-6cf7-458a-b317-726d88a2832b
[INFO] <-- 202 Accepted https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01 (83 ms, 0-byte body)
[INFO] Cache-Control: no-cache
[INFO] Content-Length: 0
[INFO] Content-Type: text/plain; charset=utf-8
[INFO] Date: Tue, 28 Aug 2018 08:59:03 GMT
[INFO] Expires: -1
[INFO] Location: https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01
[INFO] Pragma: no-cache
[INFO] Retry-After: 17
[INFO] Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: fe9a7506-c363-4185-b8d1-e026aa7435cf
[INFO] x-ms-ratelimit-remaining-subscription-reads: 11996
[INFO] x-ms-request-id: 1de3e3a7-8163-4360-8eb1-4be31156b78c
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085904Z:fe9a7506-c363-4185-b8d1-e026aa7435cf
[INFO] 0-byte body:
[INFO] <-- END HTTP
[INFO] --> GET https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01
[INFO] Accept-Encoding: gzip
[INFO] Authorization: Bearer
[INFO] Connection: Keep-Alive
[INFO] Host: management.azure.com
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (StorageManagementClient, 2017-10-01)
[INFO] x-ms-client-request-id: 5dd0b4af-e90c-4c43-9daa-4a95f807f028
[INFO] <-- 200 OK https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/providers/Microsoft.Storage/locations/westus/asyncoperations/a6951992-9ca1-4006-a1d5-14f93f15405f?monitor=true&api-version=2017-10-01 (82 ms, unknown-length body)
[INFO] Cache-Control: no-cache
[INFO] Content-Encoding: gzip
[INFO] Content-Type: application/json
[INFO] Date: Tue, 28 Aug 2018 08:59:21 GMT
[INFO] Expires: -1
[INFO] Pragma: no-cache
[INFO] Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] Transfer-Encoding: chunked
[INFO] Vary: Accept-Encoding
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: 26fa6aaa-d02e-40e2-9e3c-289c2bef64d8
[INFO] x-ms-ratelimit-remaining-subscription-reads: 11995
[INFO] x-ms-request-id: e8d0ae40-9512-4954-bb21-d9d0a523a864
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085921Z:26fa6aaa-d02e-40e2-9e3c-289c2bef64d8
[INFO] 738-byte body:
{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Storage/storageAccounts/b8140bc1d54f4cf9b231","name":"b8140bc1d54f4cf9b231","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-08-28T08:58:46.9698751Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-08-28T08:58:46.9698751Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-08-28T08:58:46.7356261Z","primaryEndpoints":{"blob":"https://b8140bc1d54f4cf9b231.blob.core.windows.net/","queue":"https://b8140bc1d54f4cf9b231.queue.core.windows.net/","table":"https://b8140bc1d54f4cf9b231.table.core.windows.net/","file":"https://b8140bc1d54f4cf9b231.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available"}}
[INFO] <-- END HTTP
[INFO] --> GET https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Storage/storageAccounts/b8140bc1d54f4cf9b231?api-version=2017-10-01
[INFO] Accept-Encoding: gzip
[INFO] accept-language: en-US
[INFO] Authorization: Bearer
[INFO] Connection: Keep-Alive
[INFO] Content-Type: application/json; charset=utf-8
[INFO] Host: management.azure.com
[INFO] User-Agent: azure-functions-maven-plugin/1.0.0-beta-5 installationId:50b88227ee1f992ed04ffa321186eb9c7b2c2793087f839cb57cf3a92cdab36e sessionId:8e30b1d0-398b-4505-a30b-f7440613ff5d Azure-SDK-For-Java/1.14.0 OS:Windows Server 2016/10.0 MacAddressHash:639ac2c725e51f1a754072c7f049e981d17d226e4aa6a08aef214d6dd250a5c4 Java:1.8.0_181 (StorageManagementClient, 2017-10-01)
[INFO] x-ms-client-request-id: 9b8a0442-f68c-4188-b615-0a435d63e40f
[INFO] <-- 200 OK https://management.azure.com/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Storage/storageAccounts/b8140bc1d54f4cf9b231?api-version=2017-10-01 (116 ms, unknown-length body)
[INFO] Cache-Control: no-cache
[INFO] Content-Encoding: gzip
[INFO] Content-Type: application/json
[INFO] Date: Tue, 28 Aug 2018 08:59:21 GMT
[INFO] Expires: -1
[INFO] Pragma: no-cache
[INFO] Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
[INFO] Strict-Transport-Security: max-age=31536000; includeSubDomains
[INFO] Transfer-Encoding: chunked
[INFO] Vary: Accept-Encoding
[INFO] X-Content-Type-Options: nosniff
[INFO] x-ms-correlation-request-id: fdf13ce3-4ad2-456e-8120-f11c006e4f7e
[INFO] x-ms-ratelimit-remaining-subscription-reads: 11994
[INFO] x-ms-request-id: 5397305a-6e36-43c2-9eb7-3a1b8d71f425
[INFO] x-ms-routing-request-id: WESTUS2:20180828T085922Z:fdf13ce3-4ad2-456e-8120-f11c006e4f7e
[INFO] 738-byte body:
{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/ffa52f27-be12-4cad-b1ea-c2c241b6cceb/resourceGroups/twhublinuxgroup/providers/Microsoft.Storage/storageAccounts/b8140bc1d54f4cf9b231","name":"b8140bc1d54f4cf9b231","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-08-28T08:58:46.9698751Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-08-28T08:58:46.9698751Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-08-28T08:58:46.7356261Z","primaryEndpoints":{"blob":"https://b8140bc1d54f4cf9b231.blob.core.windows.net/","queue":"https://b8140bc1d54f4cf9b231.queue.core.windows.net/","table":"https://b8140bc1d54f4cf9b231.table.core.windows.net/","file":"https://b8140bc1d54f4cf9b231.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available"}}
[INFO] <-- END HTTP
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.910 s
[INFO] Finished at: 2018-08-28T08:59:22Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.0.0-beta-5:deploy (default-cli) on project twhublinux: The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.: OnError while emitting onNext value: retrofit2.Response.class -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.0.0-beta-5:deploy (default-cli) on project twhublinux: The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.
at com.microsoft.azure.maven.AbstractAzureMojo.handleException (AbstractAzureMojo.java:347)
at com.microsoft.azure.maven.AbstractAzureMojo.execute (AbstractAzureMojo.java:293)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: com.microsoft.azure.CloudException: The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.
at com.microsoft.azure.AzureClient.createExceptionFromResponse (AzureClient.java:740)
at com.microsoft.azure.AzureClient.access$100 (AzureClient.java:33)
at com.microsoft.azure.AzureClient$3.call (AzureClient.java:160)
at com.microsoft.azure.AzureClient$3.call (AzureClient.java:157)
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext (OnSubscribeMap.java:69)
at retrofit2.adapter.rxjava.CallArbiter.deliverResponse (CallArbiter.java:120)
at retrofit2.adapter.rxjava.CallArbiter.emitResponse (CallArbiter.java:102)
at retrofit2.adapter.rxjava.CallExecuteOnSubscribe.call (CallExecuteOnSubscribe.java:46)
at retrofit2.adapter.rxjava.CallExecuteOnSubscribe.call (CallExecuteOnSubscribe.java:24)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeSingle.call (OnSubscribeSingle.java:81)
at rx.internal.operators.OnSubscribeSingle.call (OnSubscribeSingle.java:27)
at rx.internal.operators.SingleToObservable.call (SingleToObservable.java:39)
at rx.internal.operators.SingleToObservable.call (SingleToObservable.java:27)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.internal.operators.OnSubscribeLift.call (OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call (OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.DeferredScalarSubscriber.subscribeTo (DeferredScalarSubscriber.java:153)
at rx.internal.operators.OnSubscribeTakeLastOne.call (OnSubscribeTakeLastOne.java:32)
at rx.internal.operators.OnSubscribeTakeLastOne.call (OnSubscribeTakeLastOne.java:22)
at rx.internal.operators.OnSubscribeLift.call (OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call (OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.call (OperatorSubscribeOn.java:100)
at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call (CachedThreadScheduler.java:230)
at rx.internal.schedulers.ScheduledAction.run (ScheduledAction.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 (ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: retrofit2.Response.class
at rx.exceptions.OnErrorThrowable.addValueAsLastCause (OnErrorThrowable.java:118)
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext (OnSubscribeMap.java:73)
at retrofit2.adapter.rxjava.CallArbiter.deliverResponse (CallArbiter.java:120)
at retrofit2.adapter.rxjava.CallArbiter.emitResponse (CallArbiter.java:102)
at retrofit2.adapter.rxjava.CallExecuteOnSubscribe.call (CallExecuteOnSubscribe.java:46)
at retrofit2.adapter.rxjava.CallExecuteOnSubscribe.call (CallExecuteOnSubscribe.java:24)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeSingle.call (OnSubscribeSingle.java:81)
at rx.internal.operators.OnSubscribeSingle.call (OnSubscribeSingle.java:27)
at rx.internal.operators.SingleToObservable.call (SingleToObservable.java:39)
at rx.internal.operators.SingleToObservable.call (SingleToObservable.java:27)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.internal.operators.OnSubscribeLift.call (OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call (OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.DeferredScalarSubscriber.subscribeTo (DeferredScalarSubscriber.java:153)
at rx.internal.operators.OnSubscribeTakeLastOne.call (OnSubscribeTakeLastOne.java:32)
at rx.internal.operators.OnSubscribeTakeLastOne.call (OnSubscribeTakeLastOne.java:22)
at rx.internal.operators.OnSubscribeLift.call (OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call (OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call (OnSubscribeMap.java:33)
at rx.Observable.unsafeSubscribe (Observable.java:10327)
at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.call (OperatorSubscribeOn.java:100)
at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call (CachedThreadScheduler.java:230)
at rx.internal.schedulers.ScheduledAction.run (ScheduledAction.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 (ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
In case it can help someone, to workaround the problem. I had the same error message in a different context.
I went into the portal, created a new Linux based Function App with an App Serice Plan, along with a new storage in the resource group causing the error.
Once they were created, I deleted them (delete function app and select yes for deleting the plan). After deletion was completed, I restarted the script and it worked.
In case someone from Microsoft want to look into it, taken from deployment logs: "correlationId": "48026aa9-f7d7-4e5d-af4c-f19cb1c3d5dc" "eventDataId": "bee10e9c-1068-4933-b87f-65ac57606909" and "correlationId": "48026aa9-f7d7-4e5d-af4c-f19cb1c3d5dc", "eventDataId": "70e65736-dc09-4c05-a825-efa13ddecbfc",
I just experienced this issue. Had a resource group with a Windows App Service Plan, I deleted the whole resource group and when I tried to redeploy from Azure DevOps, I got the same error (The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one). I deleted the whole resource group and let the Release pipeline re-create it but still got the same error. When I tried to create the App Service Plan manually, I got the same error from the UI. I followed the workaround above and created a Linux App Service Plan with the same and then deleted it manually. That fixed the issue and the redeployment worked. But there is clearly a bug during deletion of the resource group or just the plan.
Thanks @ikurtev ! That solved our problem as well. Must have cleared a flag as the API thought it already existed.
@jdneo does the work-around @ikurtev / @SimonLuckenuik that suggested resolves your issue? I'm trying to establish a consistent pattern here, that way we can talk to service owners and triage.
We created a new resource group, ran an our arm template, and got this error when the template attempted to create an app function service plan. The workaround worked. We're trying to automate our deployments here. Any fixes in sight for this?
@ViggoL any chance you can share the template and parameter used? i can share it with owner team?
Ran into this same problem. The work-around seemed to fix it for now. This is concerning though. Will cause problems in automated deployments.
The workaround does not work for me. I get:
The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.
in the portal even though I am creating a Linux Azure Function
Related: I recieved the same error while deploying through an Azure Resource Group Deployment task. The deployment failed for one out of three environments.
I deleted the resource groups through Azure portal and ran the deployment again. The same environment failed with the same error.
The workaround provided by @ikurtev worked for me.
@SimonLuckenuik Anyone know how to use the dotnet sdk to create an azure function in a linux plan? I cant seem to find the fluent path that returns it.
update: never mind I found the fluent path: https://github.com/Azure/azure-libraries-for-net/blob/45368678d6a2a55438f094f70ede047752dec399/src/ResourceManagement/AppService/Domain/InterfaceImpl/AppServicePlanImpl.cs#L112
F# example
let azuregateway = createauthenticatedgateway(logmessage)
let appsettings:Dictionary<string,string> = getappsettings(istestmode)
let appplan =
azuregateway.AppServices
.AppServicePlans
.Define(buggedserviceplanname)
.WithRegion(defaultlinuxregion)
.WithExistingResourceGroup(resourcegroupname)
.WithPricingTier(PricingTier.FreeF1)
.WithOperatingSystem(OperatingSystem.Linux)
.Create()
let buggedapp =
azuregateway.AppServices
.FunctionApps
.Define(appname)
.WithExistingAppServicePlan(appplan)
.WithExistingResourceGroup(resourcegroupname)
.WithExistingStorageAccount(storageaccount)
.WithAppSettings(appsettings)
.Create()
deletesinglefarmer(buggedapp.Id)
deleteserviceplan(appplan.Id)
Any update on this issue?
Just ran into the same issue too:
suggested workaround doesn't seem to work for me
Looks like bug on service.
However I am not able to reproduce.
Basically I tried to loop on 1. create resource group, 2. create windows/linux app service plan and function app within it, 3. delete the resource group.
List<OperatingSystem> osList = Arrays.asList(OperatingSystem.LINUX, OperatingSystem.WINDOWS, OperatingSystem.LINUX, OperatingSystem.WINDOWS);
for (OperatingSystem os : osList) {
azure.resourceGroups().define("twhublinuxgroup")
.withRegion(Region.US_WEST)
.create();
azure.appServices().functionApps().define("twhublinux")
.withRegion(Region.US_WEST)
.withExistingResourceGroup("twhublinuxgroup")
.withNewAppServicePlan(
azure.appServices().appServicePlans().define("twhublinuxasp")
.withRegion(Region.US_WEST)
.withExistingResourceGroup("twhublinuxgroup")
.withPricingTier(PricingTier.BASIC_B1)
.withOperatingSystem(os)
)
.create();
//azure.appServices().appServicePlans().deleteByResourceGroup("twhublinuxgroup", "twhublinuxasp");
//azure.appServices().functionApps().deleteByResourceGroup("twhublinuxgroup", "twhublinux");
azure.resourceGroups().deleteByName("twhublinuxgroup");
}
It seems this issue was fixed on the service side. Open the issue for another Sprint. If no issue reported, close it after.
I believe I am running into this issue again as described here: https://stackoverflow.com/questions/60267817/bot-service-web-app-not-supported-in-resource-group-with-existing-linux-asp, was this issue resolved or is this still a standing known limitation?
I'm still facing this issue when using Pulumi to provision the resource and need to be fixed by the workaround. Please fix the API if possible.
@weidongxu-microsoft could you help take another look at this issue?
//cc @yungezz
@torfulle
For the post in stackoverflow, this is a genuine limitation on current Azure cloud. One cannot have windows and linux ASP in same resource group, of same region (I believe one can have windows and linux on different region).
The issue here is a different one, user does not have a ASP before adding a new one, but still get the error message.
@baoduy
I've looped 100 times to create resource group, create function app and app service plan, delete resource group. I do not see it happen.
This does not mean the issue cannot happen, just I cannot reproduce in normal use case.
If you still have the issue, please attach Java code or raw Rest API call (no Pulumi please, this is Java SDK repo). And let us know how frequently this happens.
I just ran into the same issue. Since I'm just doing this stuff for fun a changed a region for my function (and it works). I would try to get more details and post here.
I am trying to create a web app bot from the azure portal, but have met with the same issue. the work around mentioned by @ikurtev did not work for me!
What should I do ?
I'm getting the error as "Resource group with Linux app not supported". The resource group has both Windows and Linux App Services already. But while trying to create a bot service i'm getting the error. Can anybody please help me to understand whether the issue with Resource group only or anything else?
When I am trying to deploy a new function app with a new resource group, I got this error:
But The resource group I'm using is a new one which has no resource there.
Here is a sample code snippet:
Is that because something wrong when parsing the name "twhublinux" / "twhublinuxgroup"?