az vm assess-patches fails with "Subscription is not registered." error
See original GitHub issueDescribe the bug
az vm assess-patches
fails with “Subscription is not registered.” error.
What does that mean? How to fix it?
Command Name
az vm assess-patches
Errors:
Subscription is not registered.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az vm assess-patches -g {} -n {} --debug
Expected Behavior
Environment Summary
Linux-4.19.104-microsoft-standard-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB
azure-cli 2.11.1
Extensions:
interactive 0.4.4
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
az vm | Microsoft Learn
Deallocate a VM so that computing resources are no longer allocated (charged ... az vm assess-patches [--ids] [--name] [--resource-group] [--subscription] ...
Read more >Azure cli vm. For more information about extensions, see Use ...
To get all the available Azure VM sizes using Azure CLI from the specific location, we can use the az vm list-sizes command...
Read more >azure-cli 2.24.2 - PyPI
Hotfix: Fix #18276: az container create fails with AttributeError: 'ResourcesOperations' object has no attribute 'create_or_update' ...
Read more >package compute - godocs.io
func (VM VirtualMachine) MarshalJSON() ([]byte, error); func (VM ... List gets a list of container services in the specified subscription.
Read more >https://raw.githubusercontent.com/MicrosoftDocs/az...
Support/services/problemClassifications/read | Lists one or all problem classifications ... Compute/register/action | Registers Subscription with Microsoft.
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
official doc: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/automatic-vm-guest-patching#azure-cli-20
@yungezz Thanks.