Esempio n. 1
0
        // Run Get-AzureRmStorageContainer and return result
        private PSContainer GetContainerFromServer(string containerName, string accountNameToGet = null)
        {
            if (accountNameToGet == null)
            {
                accountNameToGet = accountName;
            }
            Test.Assert(CommandAgent.GetAzureRmStorageContainer(resourceGroupName, accountNameToGet, containerName),
                        string.Format("Get container {2} of storage account {0} in the resource group {1} should success.", accountNameToGet, resourceGroupName, containerName));

            return(GetContainerFromOutput());
        }