azure-powershell
azure-powershell copied to clipboard
Consumption Budget test: add random resource group name
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.
Added RmResourceModule into test framework to enable a call of New/Remove-AzureRmResourceGroup
Pull request related to this issue is resolved and merged. Please refer to the link above and close the issue.