[英]How to set minimum TLS on Azure Storage Account using Microsoft.Azure.Management.Fluent;
[英]How to specify CORS settings when creating Azure Storage account from Azure Management Fluent
我正在使用Azure Management Fluent庫創建存儲帳戶。 像這樣:
var storageAccount = await azure.StorageAccounts.Define(accountName)
.WithRegion(azureDefaults.Location)
.WithExistingResourceGroup(azureDefaults.StorageResourceGroup)
.WithGeneralPurposeAccountKindV2()
.WithOnlyHttpsTraffic()
.WithBlobEncryption()
.CreateAsync();
但是,我還需要指定CORS設置。 如何使用Fluent配置做到這一點?
我知道有一種方法可以在舊式庫中進行 ,但是我想避免使用2個庫來創建一個存儲帳戶。
我自己沒有嘗試過,但是有一個CorsSettings類的庫,它在Microsoft.Azure.Management.AppService.Fluent.Models命名空間下。 您可以在定義存儲帳戶后使用它,有關更多信息,請參見此處
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.