average-nightfall-8153
02/10/2023, 2:43 PMazure-native:storage:BlobServiceProperties (euslstcontentbea37blobcorsrules):
562
error: autorest/azure: Service returned an error. Status=400 Code="ContainerOperationFailure" Message="The value for one of the XML nodes is not in the correct format.\nRequestId:ca46ec38-701e-001a-645c-3d4f4a000000\nTime:2023-02-10T14:34:28.1856704Z"
Is this a know issue?billowy-army-68599
02/10/2023, 2:43 PMaverage-nightfall-8153
02/10/2023, 3:15 PMbillowy-army-68599
02/10/2023, 3:20 PMaverage-nightfall-8153
02/10/2023, 3:22 PMbillowy-army-68599
02/10/2023, 3:24 PMaverage-nightfall-8153
02/10/2023, 3:25 PMpublic static BlobServiceProperties AddBlobCorsRules(this StorageAccount account,
GetResourceGroupResult resourceGroup,
string propertiesName)
{
InputList<string> allowedOrigins = new InputList<string>();
if (DeploymentEnvironment.IsDebug)
{
allowedOrigins = new[] {"*"};
}
else if (DeploymentEnvironment.IsStaging)
{
allowedOrigins = new[] { TrafficManagerCommonInfo.DevHostName, TrafficManagerCommonInfo.StagingHostName };
allowedOrigins.AddRange(TrafficManagerCommonInfo.PullRequestTrafficManagerInfoList.Select(e => e.Fqdn).ToArray());
}
else if (DeploymentEnvironment.IsProduction)
{
allowedOrigins = new[] { TrafficManagerCommonInfo.ProductionHostName };
}
var properties = new BlobServiceProperties(propertiesName, new BlobServicePropertiesArgs
{
AccountName = account.Name,
ResourceGroupName = resourceGroup.Name,
BlobServicesName = "default",
Cors = new CorsRulesArgs
{
CorsRules = new[]
{
new CorsRuleArgs
{
AllowedHeaders = new[]
{
"*"
},
AllowedMethods = new[]
{
"GET", "POST", "PATCH"
},
AllowedOrigins = allowedOrigins,
ExposedHeaders = new[]
{
"*"
},
MaxAgeInSeconds = 3000
}
}
}
});
return properties;
}
billowy-army-68599
02/10/2023, 3:59 PMaverage-nightfall-8153
02/10/2023, 4:27 PM