Because I’m doing a lot of demos with Azure Policies, I searched how to clean, quickly and easily, my subscription of all these policies. For example, I deployed the following policies on a subscription:

 Azure Policy

To start, connect to your Azure account, in PowerShell, and select the subscription that you want to clean:

Execute the following command to clean all of the subscription’s policies:Azure account in PowerShell

Admin Windows PowerShell

VSAN from StarWind is software-defined storage (SDS) solution created with restricted budgets and maximum output in mind. It pulls close to 100% of IOPS from existing hardware, ensures high uptime and fault tolerance starting with just two nodes. StarWind VSAN is hypervisor and hardware agnostic, allowing you to forget about hardware restrictions and crazy expensive physical shared storage.

Build your infrastructure with off-the-shelf hardware, scale however you like, increase return on investment (ROI) and enjoy Enterprise-grade virtualization features and benefits at SMB price today!

When the command has finished, your subscription is empty of policies:

Policy Compliance

It is an easy command, but one that will save a lot of time.

Back to blog