Contains Batch account details for use when interacting with the Batch service.
        public void BatchAccountContextConstructorTest()
        {
            string endpoint = new UriBuilder(Uri.UriSchemeHttps, "account.batch-test.windows-int.net").Uri.AbsoluteUri.ToString();
            var acctContext = new BatchAccountContext(endpoint);

            Assert.Equal<string>(endpoint, acctContext.AccountEndpoint);
        }
 /// <summary>
 /// Create a new BAC and fill it in
 /// </summary>
 /// <param name="resource">Resource info returned by RP</param>
 /// <returns>new instance of BatchAccountContext</returns>
 internal static BatchAccountContext ConvertAccountResourceToNewAccountContext(AccountResource resource)
 {
     var baContext = new BatchAccountContext();
     baContext.ConvertAccountResourceToAccountContext(resource);
     return baContext;
 }
        public override void ExecuteCmdlet()
        {
            BatchAccountContext context = BatchClient.RegenerateKeys(this.ResourceGroupName, this.AccountName, this.keyType);

            WriteObject(context);
        }
        /// <summary>
        /// Get the keys associated with the specified account. If only the account name is passed in, then
        /// look up its resource group and construct a new BatchAccountContext to hold everything.
        /// </summary>
        protected override void ExecuteCmdletImpl()
        {
            BatchAccountContext context = BatchClient.GetKeys(this.ResourceGroupName, this.AccountName);

            WriteObject(context);
        }
        public override void ExecuteCmdlet()
        {
            BatchAccountContext context = BatchClient.UpdateAccount(this.ResourceGroupName, this.AccountName, this.Tag);

            WriteObject(context);
        }
        protected override void ProcessRecord()
        {
            BatchAccountContext context = BatchClient.UpdateAccount(this.ResourceGroupName, this.AccountName, this.Tag);

            WriteObject(context);
        }
        protected override void ProcessRecord()
        {
            BatchAccountContext context = BatchClient.RegenerateKeys(this.ResourceGroupName, this.AccountName, this.keyType);

            WriteObject(context);
        }
        protected override void ExecuteCmdletImpl()
        {
            BatchAccountContext context = BatchClient.UpdateAccount(this.ResourceGroupName, this.AccountName, this.Tag, this.AutoStorageAccountId);

            WriteObject(context);
        }