Title: developer-cli deploy registers the wrong resource provider for Container Apps · Issue #906 · platformplatform/PlatformPlatform · GitHub
Open Graph Title: developer-cli deploy registers the wrong resource provider for Container Apps · Issue #906 · platformplatform/PlatformPlatform
X Title: developer-cli deploy registers the wrong resource provider for Container Apps · Issue #906 · platformplatform/PlatformPlatform
Description: Contact Details No response Bug description Problem PrepareSubscription in developer-cli/Commands/DeployCommand.cs registers Microsoft.ContainerService (Azure Kubernetes Service), which Container Apps doesn't use. The two providers Conta...
Open Graph Description: Contact Details No response Bug description Problem PrepareSubscription in developer-cli/Commands/DeployCommand.cs registers Microsoft.ContainerService (Azure Kubernetes Service), which Container A...
X Description: Contact Details No response Bug description Problem PrepareSubscription in developer-cli/Commands/DeployCommand.cs registers Microsoft.ContainerService (Azure Kubernetes Service), which Container A...
Opengraph URL: https://github.com/platformplatform/PlatformPlatform/issues/906
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"developer-cli deploy registers the wrong resource provider for Container Apps","articleBody":"### Contact Details\n\n_No response_\n\n### Bug description\n\n ## Problem\n\n `PrepareSubscription` in `developer-cli/Commands/DeployCommand.cs` registers `Microsoft.ContainerService` (Azure Kubernetes Service), which Container\n Apps doesn't use. The two providers Container Apps actually requires — `Microsoft.App` and `Microsoft.OperationalInsights` — are never registered.\n\n The bicep infra deploy still works because ARM auto-registers providers for resource types in a template. But the application deploy uses `az\n containerapp update`, which checks the subscription's provider registration and fails:\n\n ```\n ERROR: Subscription \u003cid\u003e is not registered for the Microsoft.App resource provider.\n Please run \"az provider register -n Microsoft.App --wait\" to register your subscription.\n ```\n\n Result: infra + placeholder app come up, but the built application never deploys.\n\n There's also a race: `az provider register` is asynchronous, so even registering the right provider without `--wait` can lose to the deployment.\n\n ## Fix\n\n In `PrepareSubscription`, register the correct providers with `--wait`:\n\n ```csharp\n foreach (var resourceProvider in new[] { \"Microsoft.App\", \"Microsoft.OperationalInsights\" })\n {\n RunAzureCliCommand($\"provider register --namespace {resourceProvider} --wait --subscription {subscriptionId}\", ...);\n }\n ```\n\n Drop `Microsoft.ContainerService` (AKS is not used).\n\n ## References\n\n - [Container Apps prerequisites — register Microsoft.App + \n Microsoft.OperationalInsights](https://learn.microsoft.com/en-us/azure/container-apps/get-started)\n - [Provider→service map (Microsoft.App = Container Apps; Microsoft.ContainerService = \n AKS)](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers)\n\n ---\n\n### Severity\n\nLow\n\n### Is this bug security related?\n\n- [ ] This bug is related to security\n\n### Code of Conduct\n\n- [x] I agree to follow this project's Code of Conduct","author":{"url":"https://github.com/raix","@type":"Person","name":"raix"},"datePublished":"2026-06-01T18:52:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/906/PlatformPlatform/issues/906"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6b9c9dd7-c829-0107-0a0d-1f7584ffe98a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B014:2A3877:23956BC:32CBEDC:6A4BE795 |
| html-safe-nonce | 5843c5f93421c10a00321f28b6fcee1d8f0f8d29fff23877746bf2167a45b934 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDE0OjJBMzg3NzoyMzk1NkJDOjMyQ0JFREM6NkE0QkU3OTUiLCJ2aXNpdG9yX2lkIjoiNjI0OTM2OTI5OTQyMjI3NTQ3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 568b4c3ac1e7fee4c4380080d7fcdf570566fe7790a68b04c6dcaf13666dae11 |
| hovercard-subject-tag | issue:4565562240 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/platformplatform/PlatformPlatform/906/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4bf8c79d425b7d5df1cb13a1ce5451e2d45790b51a78623975f17aa546f49242/platformplatform/PlatformPlatform/issues/906 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4bf8c79d425b7d5df1cb13a1ce5451e2d45790b51a78623975f17aa546f49242/platformplatform/PlatformPlatform/issues/906 |
| og:image:alt | Contact Details No response Bug description Problem PrepareSubscription in developer-cli/Commands/DeployCommand.cs registers Microsoft.ContainerService (Azure Kubernetes Service), which Container A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | raix |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/platformplatform/PlatformPlatform git https://github.com/platformplatform/PlatformPlatform.git |
| octolytics-dimension-user_id | 130082384 |
| octolytics-dimension-user_login | platformplatform |
| octolytics-dimension-repository_id | 630034222 |
| octolytics-dimension-repository_nwo | platformplatform/PlatformPlatform |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 630034222 |
| octolytics-dimension-repository_network_root_nwo | platformplatform/PlatformPlatform |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f24da9b76b42d77b0bb458f810509565e9ba5f1a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width