diff --git a/samples/manage/azure-automation-automated-export/README.md b/samples/manage/azure-automation-automated-export/README.md index 54fced0b..e4d2f038 100644 --- a/samples/manage/azure-automation-automated-export/README.md +++ b/samples/manage/azure-automation-automated-export/README.md @@ -16,15 +16,18 @@ Provides the scripts and lists the steps to set up automatically exporting your ```powershell $cert = New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my -DnsName ``` + - Export the certificate as a .cer file ```powershell Export-Certificate -Cert "cert:\localmachine\my\$($cert.Thumbprint)" -FilePath .cer ``` + - Create a corresponding pfx certificate by taking the thumbprint of the newly created certificate and running these commands: ```powershell $CertPassword = ConvertTo-SecureString -String -Force -AsPlainText Export-PfxCertificate -Cert "cert:\localmachine\my\$($cert.Thumbprint)" -FilePath .pfx -Password $CertPassword ``` + - Upload the .cer file to your subscription [in the old portal](https://manage.windowsazure.com/) - Upload the .pfx file to the certificates under Assets in the automation account that you want to use on Azure. You will use the password you gave in the previous step to authenticate it. 2. Create new a new credentials asset to authenticate your server with.