Azure / azure-cli

Azure Command-Line Interface
MIT License
4k stars 2.98k forks source link

CLI does not support way to create Managed Identity for Logic App (Standard) #30136

Open Rich-Lang opened 2 hours ago

Rich-Lang commented 2 hours ago

Related command The following command allows me to create a Logic App (Standard), but after doing so, I have no way to enable Managed Identity without navigating to the resource in the Azure Portal. I am seeking a way to enable Managed Identity for a Logic App (Standard) az logicapp create -g myRG --subscription mySubscription -p MyPlan -n myLogicApp -s myStorageAccount

Is your feature request related to a problem? Please describe. I am attempting to automate the creation of my solution using Azure CLI, but am finding myself unable due to lack of support for Managed Identities for Logic App (Standard). A solution exists for Consumption Based Logic Apps, but not Logic App (Standard).

Describe the solution you'd like I would like a command such as: az logicapp identity assign -name MyLogicAppStandard --resource-group MyResourceGroup which enables ManagedIdentity. This would be similar to the Azure FunctionApp equivalent: https://learn.microsoft.com/en-us/cli/azure/functionapp/identity?view=azure-cli-latest#az-functionapp-identity-assign

Describe alternatives you've considered I have thoroughly explored the possibility to use https://learn.microsoft.com/en-us/cli/azure/logic/workflow/identity?view=azure-cli-latest#az-logic-workflow-identity-assign which came from https://github.com/Azure/azure-cli/issues/15586. This is an Extension which only supports Consumption Logic Apps and does not work for my purpose. My only option has been to manually configure the Managed Identity using the Azure Portal.

Additional context Image

yonzhan commented 2 hours ago

Thank you for opening this issue, we will look into it.

github-actions[bot] commented 2 hours ago

Here are some similar issues that might help you. Please check if they can solve your problem.

microsoft-github-policy-service[bot] commented 2 hours ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @wsilveiranz.

Rich-Lang commented 2 hours ago

Here are some similar issues that might help you. Please check if they can solve your problem.

This only works for Consumption Logic Apps and does not support Logic App (Standard) resources.