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); } }