'NoneType' object has no attribute 'id' for az backup protection enable-for-azurefileshare if fileshare already protected
See original GitHub issueDescribe the bug ‘NoneType’ object has no attribute ‘id’ for az backup protection enable-for-azurefileshare if fileshare already protected
To Reproduce
az backup protection enable-for-azurefileshare --azure-file-share $filesharename --policy-name $policyname --storage-account $storageaccount --resource-group $resourcegroup --vault-name $vaultname --subscription $subscription
az backup protection enable-for-azurefileshare --azure-file-share $filesharename --policy-name $policyname --storage-account $storageaccount --resource-group $resourcegroup --vault-name $vaultname --subscription $subscription```
Expected behavior Running command twice with same parameters works so that it is idempotent
Environment summary azure-cli 2.8.0
command-modules-nspkg 2.0.3 core 2.8.0 nspkg 3.0.4 telemetry 1.0.4
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:21 (12 by maintainers)
Top Results From Across the Web
Mute command failing with "AttributeError: 'NoneType' object ...
Wrong key; Bot not logged in, and trying to grab objects from cache; Bot cannot "see" the object. I'm pretty sure you didn't...
Read more >AttributeError NoneType object has no attribute product
VM backup fails with the INTERNAL65535 error - AttributeError NoneType object has no attribute product. Last updated: Jun 3, 2022.
Read more >azure cli error 'NoneType' object has no attribute ...
Az CLI Error 'NoneType' object has no attribute 'server_farm_id' caused by using the wrong Azure subscription.
Read more >'NoneType' object has no attribute 'id' - asdeasoft.net
I am trying to do an eigenanalysis of a building, when I run the analysis, I get the 'NoneType' object has no attribute...
Read more >Getting 'NoneType' object has no attribute 'id' error - Reddit
If your production database doesn't have any MolecularData items, then it would return a NoneType object with .last, and thus you would not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are working on making the API response idempotent and tracking it internally. Once the changes are live, we will update the thread. Since there is no immediate action pending on the PG team, closing this thread. Incase you have any further questions or concerns, please feel free to reopen this case or open a new one with reference to this issue.
I have the same problem but the first time that I execute the command
az backup protection enable-for-azurefileshare
within an unprotected fileshare. Any idea?