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:24] mguptonazure:handy_azure_solutions [2022/09/12 13:27] (current) mgupton
Line 1: Line 1:
 ====== Handy Azure Solutions ====== ====== Handy Azure Solutions ======
 +
 +=== Copy Network Security Groups ===
   * [[https://github.com/kpatnayakuni/PowerShell/blob/master/Azure/Copy-AzNSGSecurityRules.ps1|Powershell script to copy Network Security Groups]]   * [[https://github.com/kpatnayakuni/PowerShell/blob/master/Azure/Copy-AzNSGSecurityRules.ps1|Powershell script to copy Network Security Groups]]
  
Line 5: 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.1657311878.txt.gz
  • Last modified: 2022/07/08 20:24
  • by mgupton