azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Consumption Budget test: add random resource group name

Open bgsky opened this issue 8 years ago • 2 comments

Description

Consumption budget test at resource group level use hard-coded resource group name in tests. Make the name test-time generated. This test requires use of the cmdlet New-AzureRmResourceGroup, and Remove-AzureRmResourceGroup. We have errors when calling these two cmdlets.

Script/Steps for Reproduction

New-AzureRmResourceGroup -Name $resourceGroupName -Location westus -Force

Module Version

Get-Module -Name AzureRM -ListAvailable

Environment Data

$PSVersionTable

Debug Output

Could not load file or assembly 'Microsoft.Azure.Commands.ResourceManager.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Azure.Commands.ResourceManager.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/g/AI/github/azure-powershell/src/ResourceManager/Consumption/Commands.Consumption.Test/bin/Debug
LOG: Initial PrivatePath = NULL
Calling assembly : Microsoft.Azure.Commands.Resources, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.

bgsky avatar Jun 11 '18 23:06 bgsky

Added RmResourceModule into test framework to enable a call of New/Remove-AzureRmResourceGroup

bgsky avatar Jun 12 '18 23:06 bgsky

Pull request related to this issue is resolved and merged. Please refer to the link above and close the issue.

bgsky avatar Jun 18 '18 22:06 bgsky