Skip to content

Commit

Permalink
AzureRM backward compatibility; Rename diagnostic extension name
Browse files Browse the repository at this point in the history
  • Loading branch information
knithinc committed Sep 25, 2017
1 parent fb8bdf0 commit 2b5b55a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CanaryValidator/Canary.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,9 @@ while ($runCount -le $NumberOfIterations)

Invoke-Usecase -Name 'RegisterResourceProviders' -Description "Register resource providers" -UsecaseBlock `
{
("Microsoft.Storage", "Microsoft.Compute", "Microsoft.Network", "Microsoft.KeyVault") | ForEach-Object {Get-AzureRmResourceProvider -ProviderNamespace $_} | Register-AzureRmResourceProvider -Force
$parameters = @{}
if ((Get-Module AzureRM -ListAvailable).Version -le "1.2.10") {$parameters = @{"Force" = $True}}
("Microsoft.Storage", "Microsoft.Compute", "Microsoft.Network", "Microsoft.KeyVault") | ForEach-Object {Get-AzureRmResourceProvider -ProviderNamespace $_} | Register-AzureRmResourceProvider @parameters
$sleepTime = 0
while($true)
{
Expand Down
2 changes: 1 addition & 1 deletion CanaryValidator/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@
{
"apiVersion": "[variables('apiVersion')]",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(concat(variables('VMNamePrefix'), '1'),'/Microsoft.Insights.VMDiagnosticsSettings')]",
"name": "[concat(concat(variables('VMNamePrefix'), '1'),'/VMDiagnosticsSettings')]",
"location": "[variables('location')]",
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName3'))]",
Expand Down
2 changes: 1 addition & 1 deletion CanaryValidator/azuredeploy.nolinux.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@
{
"apiVersion": "[variables('apiVersion')]",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(concat(variables('VMNamePrefix'), '1'),'/Microsoft.Insights.VMDiagnosticsSettings')]",
"name": "[concat(concat(variables('VMNamePrefix'), '1'),'/VMDiagnosticsSettings')]",
"location": "[variables('location')]",
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName3'))]",
Expand Down

0 comments on commit 2b5b55a

Please sign in to comment.