azure-sdk-for-cpp/sdk/storage/test-resources-post.ps1
2022-08-05 13:54:50 +08:00

14 lines
508 B
PowerShell

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
param(
[string] $ResourceGroupName,
[hashtable] $DeploymentOutputs
)
New-AzStorageEncryptionScope -ResourceGroupName $ResourceGroupName -StorageAccountName $DeploymentOutputs['ACCOUNT_NAME'] -EncryptionScopeName "EncryptionScopeForTest" -StorageEncryption
# This script is used to wait until XCache is refreshed for the service properties (30s), and role assignment takes effect (300s).
Start-Sleep -s 300