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
Next revision
Previous revision
azure:handy_azure_solutions [2022/07/08 20:32] mguptonazure:handy_azure_solutions [2022/09/12 13:27] (current) mgupton
Line 7: Line 7:
 <code powershell> <code powershell>
  Get-AzLocation | select DisplayName, Location  Get-AzLocation | select DisplayName, Location
 +</code>
 +
 +=== Connect to Bastion Using Native Client ===
 +  * [[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> </code>
  
  • azure/handy_azure_solutions.1657312323.txt.gz
  • Last modified: 2022/07/08 20:32
  • by mgupton