I am using Azure Kubernetes Service and Azure Backup Vault to generate regular backups of my cluster.
I am now trying to script the creation of an On-demand backup using Azure CLI. However, after thoroughly validating all inputs, I keep getting a BMSUserErrorInvalidInput. Using Az-PowerShell and the REST API led to similar results, even when it works correctly whenever I trigger it from the portal.
(BMSUserErrorInvalidInput) The user's input for the call is incorrect
Code: BMSUserErrorInvalidInput
Message: The user's input for the call is incorrect
Additional Information:Type: UserFacingError
Info: {
"message": " The user's input for the call is incorrect",
"recommendedAction": [
"Please check the required inputs"
],
"code": "BMSUserErrorInvalidInput",
"target": "",
"isRetryable": false,
"isUserError": false,
"properties": {
"ActivityId": "xxx-xxx-xxx-xxx-xxx"
}
}
Issue script & Debug output
(Tomorrow I will update with the debug logs because I'm now getting this error The operation is blocked, as a security precaution, since multiple attempts were made beyond an internal limit.)
Expected behavior
Successfully triggers and creates an Azure Kubernetes Service backup, which works fine when triggered from the portal.
Describe the bug
I am using Azure Kubernetes Service and Azure Backup Vault to generate regular backups of my cluster.
I am now trying to script the creation of an On-demand backup using Azure CLI. However, after thoroughly validating all inputs, I keep getting a BMSUserErrorInvalidInput. Using Az-PowerShell and the REST API led to similar results, even when it works correctly whenever I trigger it from the portal.
Related command
az dataprotection backup-instance adhoc-backup --rule-name "Default" -n $BACKUP_INSTANCE_NAME -g $RESOURCE_GROUP_NAME --subscription $SUBSCRIPTION_ID -v $BACKUP_VAULT_NAME
Errors
Issue script & Debug output
(Tomorrow I will update with the debug logs because I'm now getting this error
The operation is blocked, as a security precaution, since multiple attempts were made beyond an internal limit.
)Expected behavior
Successfully triggers and creates an Azure Kubernetes Service backup, which works fine when triggered from the portal.
Environment Summary
Additional context