Azure-Samples / Azure-Samples/keyvault-rotation-storageaccountkey-powershell
Application Insights deployment failed - Provided WorkspaceResourceId is invalid
- Dominant language
- PowerShell
- Stars
- 13
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
The Application Insights deployment failed from the Azure Portal when following the steps described in: https://learn.microsoft.com/en-us/azure/key-vault/secrets/tutorial-rotation-dual?tabs=azure-cli#create-and-deploy-the-key-rotation-function
The error showing is:
`Provided WorkspaceResourceId is invalid (Code: BadRequest)
`
Raw Error:
```
"details": [
{
"code": "BadRequest",
"message": "Provided WorkspaceResourceId is invalid"
}
]
```
Is this due to the resource name is 51 characters ?
Contributor guide
Research direction
Reproduce the Application Insights deployment by following the linked Azure Key Vault rotation tutorial and capture the generated WorkspaceResourceId. Compare the resource ID with Azure's naming requirements, including whether the 51-character resource name is relevant; done means documenting the confirmed cause and the required correction for this sample.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100