little-kangaroo-50941
02/24/2020, 9:54 AMtall-librarian-49374
02/24/2020, 12:36 PMlittle-kangaroo-50941
02/24/2020, 12:56 PMstocky-crayon-93563
02/24/2020, 5:31 PMtall-librarian-49374
02/24/2020, 5:33 PMlittle-kangaroo-50941
02/24/2020, 5:34 PMtall-librarian-49374
02/24/2020, 7:03 PMstocky-crayon-93563
02/24/2020, 7:28 PMflat-mouse-20634
02/26/2020, 8:35 AMEnableStaticSites
to synchronous call so my call to EnableStaticSites is like this
if (!Deployment.Instance.IsDryRun)
storageAccount.PrimaryBlobConnectionString.Apply(v => EnableStaticSites(v) );
and the method looks like this
static string EnableStaticSites(string connectionString)
{
CloudStorageAccount sa = CloudStorageAccount.Parse(connectionString);
var blobClient = sa.CreateCloudBlobClient();
ServiceProperties blobServiceProperties = new ServiceProperties();
blobServiceProperties.StaticWebsite = new StaticWebsiteProperties
{
Enabled = true,
IndexDocument = "index.html",
ErrorDocument404Path = "404.html"
};
blobClient.SetServicePropertiesAsync(blobServiceProperties).Wait();
return connectionString;
}
Do you have any suggestions? @tall-librarian-49374tall-librarian-49374
02/26/2020, 8:36 AMflat-mouse-20634
02/26/2020, 8:40 AMtall-librarian-49374
02/26/2020, 8:58 AMflat-mouse-20634
02/26/2020, 9:14 AMtall-librarian-49374
02/26/2020, 9:22 AMflat-mouse-20634
02/26/2020, 9:34 AM{"containerName", containerName}
containerName
from the returned dictionary and put Console.Writeline around SetServicePropertiesAsync
Console.WriteLine("Before SetServicePropertiesAsync");
await blobClient.SetServicePropertiesAsync(blobServiceProperties);
Console.WriteLine("After SetServicePropertiesAsync");
After I run, I can see only Before SetServicePropertiesAsync
in the diagnostics messagesstocky-crayon-93563
02/26/2020, 1:44 PMtall-librarian-49374
02/26/2020, 3:04 PM