public virtual BatchAccountContext CreateAccount(string resourceGroupName, string accountName, string location, Hashtable tags, string autoStorageAccountId)
{
Dictionary<string, string> tagDictionary = TagsConversionHelper.CreateTagDictionary(tags, validate: true);
AutoStorageBaseProperties autoStorage = (string.IsNullOrEmpty(autoStorageAccountId)) ? null : new AutoStorageBaseProperties
{
StorageAccountId = autoStorageAccountId
};
var response = BatchManagementClient.BatchAccount.Create(resourceGroupName, accountName, new BatchAccountCreateParameters()
{
Location = location,
Tags = tagDictionary,
AutoStorage = autoStorage
});
var context = BatchAccountContext.ConvertAccountResourceToNewAccountContext(response);
return context;
}