Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad ARM Template #2899

Open
mjlally07 opened this issue Jan 23, 2025 · 4 comments
Open

Bad ARM Template #2899

mjlally07 opened this issue Jan 23, 2025 · 4 comments
Labels
arc_app_svc Azure Arc-enabled app services related bug Something isn't working

Comments

@mjlally07
Copy link

mjlally07 commented Jan 23, 2025

Jumpstart scenario, Deploy an App Service app using custom container on AKS using an ARM Template

https://azurearcjumpstart.io/azure_arc_jumpstart/azure_arc_app_svc/aks/aks_app_service_arm_template

Describe the issue or the bug
Receive {"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"UnmarshalError","message":"Invalid request body. Converting request body to a managed cluster encountered error: json: unknown field "storageProfile" Check that the field is in the right location, is spelled correctly, and is supported in the API version. Visit aka.ms/aks/apiversions for more API version information.."}]}

To Reproduce
Deploy ARM Template

Expected behavior
Microsoft.ContainerService/managedClusters Deploys

Environment summary
Running command
az deployment group create
--resource-group Arc-AppSvc-Demo
--name arcappsvc
--template-uri https://raw.githubusercontent.com/microsoft/azure_arc/main/azure_arc_app_services_jumpstart/aks/ARM/azuredeploy.json
--parameters azuredeploy.parameters.json

Additional context
API Version "2024-02-02-preview" in ARM Template at https://github.com/microsoft/azure_arc/tree/main/azure_arc_app_services_jumpstart/aks/ARM/aks.json does not appear to exist here https://learn.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters?pivots=deployment-language-arm-template and no other API version seems to have storageProfile as property of agentPoolProfiles

@mjlally07 mjlally07 added the triage issue or feature up for triage label Jan 23, 2025
@mjlally07 mjlally07 changed the title Bad AKS ARM Template Bad ARM Template Jan 23, 2025
@mrhoads
Copy link
Contributor

mrhoads commented Jan 28, 2025

Hi @mjlally07 - thanks for raising this issue. I'm taking a look at the ARM template and will work to identify what needs to change to make the scenario work.

@mrhoads mrhoads self-assigned this Jan 28, 2025
@mrhoads mrhoads moved this to In Progress in Azure Arc Jumpstart Jan 29, 2025
@mrhoads mrhoads added bug Something isn't working arc_app_svc Azure Arc-enabled app services related and removed triage issue or feature up for triage labels Jan 29, 2025
@mrhoads mrhoads removed their assignment Jan 30, 2025
@mrhoads
Copy link
Contributor

mrhoads commented Jan 30, 2025

@mjlally07 - I'm still working through this. The storageProfile shouldn't be necessary and I think the issue you were seeing is related to this. Because of capacity constraints on my subscription, I'm not able to deploy the client VM to East US or West Europe. In the meantime, I've deployed the Client VM and AKS cluster to another region and modified the PowerShell to force the Arc-enabled Kubernetes cluster to onboard in one of the supported regions.

@mrhoads
Copy link
Contributor

mrhoads commented Jan 30, 2025

I submitted this pr to fix the storageProfile issue. Because of capacity constraints on my subscription, I wasn't able to fully test the end-to-end scenario directly but did use the ARM templates to successfully create the AKS cluster (and VM, etc.).

@mjlally07
Copy link
Author

Thanks. I'll track and retry when ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arc_app_svc Azure Arc-enabled app services related bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

2 participants