Skip to content

Commit 7270411

Browse files
authored
Merge pull request #49755 from mestew/SinglePass
Single pass ADEprereqscript changes
2 parents 3ca0343 + 0fd8af2 commit 7270411

5 files changed

+34
-11
lines changed

articles/security/TOC.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,24 @@
4242
items:
4343
- name: About Azure Disk Encryption
4444
href: azure-security-disk-encryption-overview.md
45+
- name: Quickstarts
46+
items:
47+
- name: Encrypt VM - Azure PowerShell
48+
href: quick-encrypt-vm-powershell.md
4549
- name: Azure Disk Encryption
4650
items:
47-
- name: Quickstarts
48-
items:
49-
- name: Encrypt VM - Azure PowerShell
50-
href: quick-encrypt-vm-powershell.md
5151
- name: Disk encryption prerequisites
5252
href: azure-security-disk-encryption-prerequisites.md
5353
- name: Disk encryption for Windows VMs
5454
href: azure-security-disk-encryption-windows.md
5555
- name: Disk encryption for Linux VMs
5656
href: azure-security-disk-encryption-linux.md
57+
- name: Appendix for disk encryption
58+
href: azure-security-disk-encryption-appendix.md
59+
- name: Disk encryption FAQ
60+
href: azure-security-disk-encryption-faq.md
61+
- name: Troubleshooting
62+
href: azure-security-disk-encryption-tsg.md
5763
- name: Azure Disk Encryption with Azure AD app (previous release)
5864
items:
5965
- name: Disk encryption with Azure AD app prerequisites
@@ -62,12 +68,6 @@
6268
href: azure-security-disk-encryption-windows-aad.md
6369
- name: Disk encryption with Azure AD app for Linux VMs
6470
href: azure-security-disk-encryption-linux-aad.md
65-
- name: Appendix for disk encryption
66-
href: azure-security-disk-encryption-appendix.md
67-
- name: Disk encryption FAQ
68-
href: azure-security-disk-encryption-faq.md
69-
- name: Troubleshooting
70-
href: azure-security-disk-encryption-tsg.md
7171
- name: Azure Storage security
7272
href: security-storage-overview.md
7373
- name: Storage security guide

articles/security/azure-security-disk-encryption-appendix.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,23 @@ Before you start, review the [Prerequisites](azure-security-disk-encryption-prer
102102
Get-AzureKeyVaultSecret -VaultName $KeyVaultName | where {$_.Tags.ContainsKey('DiskEncryptionKeyFileName')} | format-table @{Label="MachineName"; Expression={$_.Tags['MachineName']}}, @{Label="VolumeLetter"; Expression={$_.Tags['VolumeLetter']}}, @{Label="EncryptionKeyURL"; Expression={$_.Id}}
103103
```
104104
105+
### <a name="bkmk_prereq-script"></a> Using the Azure Disk Encryption prerequisites PowerShell script
106+
If you're already familiar with the prerequisites for Azure Disk Encryption, you can use the [Azure Disk Encryption prerequisites PowerShell script](https://raw.githubusercontent.com/Azure/azure-powershell/master/src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/Scripts/AzureDiskEncryptionPreRequisiteSetup.ps1 ). For an example of using this PowerShell script, see the [Encrypt a VM Quickstart](quick-encrypt-vm-powershell.md). You can remove the comments from a section of the script, starting at line 211, to encrypt all disks for existing VMs in an existing resource group.
107+
108+
The following table shows which parameters can be used in the PowerShell script:
109+
110+
111+
|Parameter|Description|Is Mandatory|
112+
|------|------|------|
113+
|$resourceGroupName| Name of the resource group to which the KeyVault belongs to. A new resource group with this name will be created if one doesn't exist.| True|
114+
|$keyVaultName|Name of the KeyVault in which encryption keys are to be placed. A new vault with this name will be created if one doesn't exist.| True|
115+
|$location|Location of the KeyVault. Make sure the KeyVault and VMs to be encrypted are in the same location. Get a location list with `Get-AzureRMLocation`.|True|
116+
|$subscriptionId|Identifier of the Azure subscription to be used. You can get your Subscription ID with `Get-AzureRMSubscription`.|True|
117+
|$aadAppName|Name of the Azure AD application that will be used to write secrets to KeyVault. A new application with this name will be created if one doesn't exist. If this app already exists, pass aadClientSecret parameter to the script.|False|
118+
|$aadClientSecret|Client secret of the Azure AD application that was created earlier.|False|
119+
|$keyEncryptionKeyName|Name of optional key encryption key in KeyVault. A new key with this name will be created if one doesn't exist.|False|
120+
121+
105122
## Resource Manager templates
106123
107124
<!-- - [Create a key vault](https://github.com/Azure/azure-quickstart-templates/tree/master/101-key-vault-create) -->

articles/security/azure-security-disk-encryption-prerequisites-aad.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ The [Azure CLI 2.0](/cli/azure) is a command-line tool for managing Azure resour
133133
134134
135135
## Prerequisite workflow for Key Vault and the Azure AD app
136+
137+
If you're already familiar with the Key Vault and Azure AD prerequisites for Azure Disk Encryption, you can use the [Azure Disk Encryption prerequisites PowerShell script](https://raw.githubusercontent.com/Azure/azure-powershell/master/src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/Scripts/AzureDiskEncryptionPreRequisiteSetup.ps1 ). For more information on using the prerequisites script, see the [Encrypt a VM Quickstart](quick-encrypt-vm-powershell.md) and the [Azure Disk Encryption Appendix](azure-security-disk-encryption-appendix.md#bkmk_prereq-script).
138+
136139
1. Create a key vault.
137140
2. Set up an Azure AD application and service principal.
138141
3. Set the key vault access policy for the Azure AD app.

articles/security/azure-security-disk-encryption-prerequisites.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ The [Azure CLI 2.0](/cli/azure) is a command-line tool for managing Azure resour
130130
131131
132132
## Prerequisite workflow for Key Vault
133+
If you're already familiar with the Key Vault and Azure AD prerequisites for Azure Disk Encryption, you can use the [Azure Disk Encryption prerequisites PowerShell script](https://raw.githubusercontent.com/Azure/azure-powershell/master/src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/Scripts/AzureDiskEncryptionPreRequisiteSetup.ps1 ). For more information on using the prerequisites script, see the [Encrypt a VM Quickstart](quick-encrypt-vm-powershell.md) and the [Azure Disk Encryption Appendix](azure-security-disk-encryption-appendix.md#bkmk_prereq-script).
133134
134135
1. If needed, create a resource group.
135136
2. Create a key vault.

articles/security/quick-encrypt-vm-powershell.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
2424

2525
- Windows PowerShell ISE
2626
- Install and configure the [latest version of Azure PowerShell](/powershell/azure/install-azurerm-ps)
27-
- A copy of the [Azure Disk Encryption prerequisites script](https://raw.githubusercontent.com/Azure/azure-powershell/master/src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/Scripts/AzureDiskEncryptionPreRequisiteSetup.ps1 )
27+
- A copy of the [Azure Disk Encryption prerequisites script](https://raw.githubusercontent.com/Azure/azure-powershell/master/src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/Scripts/AzureDiskEncryptionPreRequisiteSetup.ps1).
28+
- If you have this script already, download a new copy as it has recently changed.
2829
- Use **CTRL-A** to select all the text then use **CTRL-C** to copy all the text into Notepad.
2930
- Save the file as **ADEPrereqScript.ps1**
3031

32+
3133
## Sign in to Azure
3234

3335
1. Right-click **Windows PowerShell ISE** and click **Run as administrator**.

0 commit comments

Comments
 (0)