Storage Account associated with Media Service Account
Exemple #1
0
 public static StorageAccount ToStorageAccount(this PSStorageAccount storageAccount)
 {
     return(new StorageAccount
     {
         Id = storageAccount.Id,
         IsPrimary = storageAccount.IsPrimary
     });
 }
        public override void ExecuteCmdlet()
        {
            if (ShouldProcess(StorageAccountId, NewMediaServiceStorageConfigWhatIfMessage))
            {
                var config = new PSStorageAccount
                {
                    Id = StorageAccountId,
                    IsPrimary = IsPrimary
                };

                WriteObject(config);
            }
        }