Azure / Azure/azure-cli

can not create private endpoint for automation account

Open
#22,233 3 comments 0 reactions 2 assignees Claimed by @YuanyuanNi View on GitHub
act-quality-productivity-squad Auto-Assign Customer Usage customer-reported Network Traiged
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Environment Summary
```
Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29, Ubuntu 20.04.4 LTS
Python 3.8.12
Installer: DEB

azure-cli 2.34.1 *

Extensions:
automation 0.1.1
azure-devops 0.18.0
aks-preview 0.5.14
aks-virtual-node 0.2.0
front-door 1.0.16

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0
```

When trying to create a private endpoint for an Automation Account i get an error message.

Steps :

export LOCAL="WestEurope"
export RGCOMMON="COMMON-RG"
export RGDEPLOY="DEPLOY-RG"
export ENVIR="PROD"
export ENVIRLOW=$(echo $ENVIR | tr '[:upper:]' '[:lower:]')
export DEFTAGS="ENV=$ENVIR"
export VNETDEPLOY="DEPLOY-VNET"

az automation account create --automation-account-name automation-account-$ENVIRLOW-$LOCAL -g $RGCOMMON --location $LOCAL --sku Basic --tags $DEFTAGS

export AUTOMATIONID=$(az resource show -g $RGCOMMON -n automation-account-$ENVIRLOW-$LOCAL --resource-type "Microsoft.Automation/AutomationAccounts" --query "id" -o tsv)

az network private-endpoint create --name automation-account-$ENVIRLOW-$LOCAL-PrivateEndpoint --resource-group $RGCOMMON \
--subnet /subscriptions/$SUBSCRIPTION/resourceGroups/$RGDEPLOY/providers/Microsoft.Network/virtualNetworks/$VNETDEPLOY/subnets/deploy-subnet \
--private-connection-resource-id $AUTOMATIONID \
--group-id Webhook --connection-name automation-account-$ENVIRLOW-$LOCAL-Connection --tags $DEFTAGS

(InternalServerError) Call to Microsoft.Automation/AutomationAccounts failed.
Code: InternalServerError
Message: Call to Microsoft.Automation/AutomationAccounts failed.

The Private Endpoint creation using Azure Portal is working OK

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.