Skip to content

Commit

Permalink
Wait for storage account role propagation (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
BMurri authored Feb 25, 2025
1 parent 8ff6790 commit 8883609
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/deploy-tes-on-azure/Deployer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,16 @@ await Task.WhenAll(
{
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);
}
else
{
await Task.Delay(TimeSpan.FromMinutes(5), cts.Token);
}

await WritePersonalizedFilesToStorageAccountAsync(storageAccountData);
await AssignVmAsContributorToStorageAccountAsync(managedIdentity, storageAccount);
await AssignVmAsDataOwnerToStorageAccountAsync(managedIdentity, storageAccount);
await AssignManagedIdOperatorToResourceAsync(managedIdentity, resourceGroup);
await AssignMIAsNetworkContributorToResourceAsync(managedIdentity, resourceGroup);
await WritePersonalizedFilesToStorageAccountAsync(storageAccountData);
}),
]);

Expand Down

0 comments on commit 8883609

Please sign in to comment.