Skip to content

Commit 8883609

Browse files
authored
Wait for storage account role propagation (#838)
1 parent 8ff6790 commit 8883609

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/deploy-tes-on-azure/Deployer.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -623,12 +623,16 @@ await Task.WhenAll(
623623
{
624624
ConsoleEx.WriteLine("Unable to assign 'Storage Blob Data Contributor' for deployment identity to the storage account. If the deployment fails as a result, the storage account must be precreated and the deploying user must have the 'Storage Blob Data Contributor' role for the storage account.", ConsoleColor.Yellow);
625625
}
626+
else
627+
{
628+
await Task.Delay(TimeSpan.FromMinutes(5), cts.Token);
629+
}
626630

627-
await WritePersonalizedFilesToStorageAccountAsync(storageAccountData);
628631
await AssignVmAsContributorToStorageAccountAsync(managedIdentity, storageAccount);
629632
await AssignVmAsDataOwnerToStorageAccountAsync(managedIdentity, storageAccount);
630633
await AssignManagedIdOperatorToResourceAsync(managedIdentity, resourceGroup);
631634
await AssignMIAsNetworkContributorToResourceAsync(managedIdentity, resourceGroup);
635+
await WritePersonalizedFilesToStorageAccountAsync(storageAccountData);
632636
}),
633637
]);
634638

0 commit comments

Comments
 (0)