azure:handy_azure_solutions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
azure:handy_azure_solutions [2022/08/31 13:02] mguptonazure:handy_azure_solutions [2022/09/12 13:27] (current) mgupton
Line 11: Line 11:
 === Connect to Bastion Using Native Client === === Connect to Bastion Using Native Client ===
   * [[https://docs.microsoft.com/en-us/azure/bastion/connect-native-client-windows]]   * [[https://docs.microsoft.com/en-us/azure/bastion/connect-native-client-windows]]
 +
 +=== List Custom Policies ===
 +<code powershell>
 +foreach ($sub in Get-AzSubscription -TenantId "7f2a3442-...") {
 +    Get-AzPolicyDefinition -SubscriptionId $sub.id | select -ExpandProperty Properties | where {$_.PolicyType -eq "Custom"} | select DisplayName -ExpandProperty Metadata | select DisplayName, createdOn, updatedOn | fl
 +}
 +</code>
  
  • azure/handy_azure_solutions.1661950959.txt.gz
  • Last modified: 2022/08/31 13:02
  • by mgupton