You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
- name: Create a backuphosts: alltasks:
- name: Create a backup of an Azure VMazure.azcollection.azure_rm_backupazurevm:
resource_group: XXXXrecovery_vault_name: XXXXresource_id: '/subscriptions/XXXX/resourceGroups/XXXX/providers/Microsoft.Compute/virtualMachines/XXXX'backup_policy_id: '/subscriptions/XXXX/resourceGroups/XXXX/providers/Microsoft.RecoveryServices/vaults/XXXX/backupPolicies/DefaultPolicy'state: 'backup'
EXPECTED RESULTS
VM backup triggered, or at least a better error message.
ACTUAL RESULTS
[
TASK [Create a backup of an Azure VM] ********************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Create or Updating fail, no match message return, return info as None"}
I am using SP credentials but I have also tried my personal credentials with the same result. Running az backup protection backup-now works with SP credentials.
The text was updated successfully, but these errors were encountered:
@mdhowle Yes, there is no return value after triggering the backup now, not need to format the return value, it has been fixed in PR #1531 . Thank you!
SUMMARY
Attempting to trigger an on-demand backup of VM returns
"Create or Updating fail, no match message return, return info as None"
It does appear the snapshots are occurring.
ISSUE TYPE
COMPONENT NAME
azure.azcollection.azure_rm_backupazurevm
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian 12
Python 3.11.2
STEPS TO REPRODUCE
EXPECTED RESULTS
VM backup triggered, or at least a better error message.
ACTUAL RESULTS
[
Verbose: https://gist.github.com/mdhowle/0b23073bcd8a2aa7b12d3f55db43d313
I am using SP credentials but I have also tried my personal credentials with the same result. Running
az backup protection backup-now
works with SP credentials.The text was updated successfully, but these errors were encountered: