Skip to content

Commit 283bc95

Browse files
committed
Fix Tests
1 parent 2ed98d1 commit 283bc95

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/compute-management/02-VirtualMachineCreation.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ subId=`echo $contextResult | jq '.Subscription.SubscriptionId' --raw-output`
1717

1818
subnetId="/subscriptions/$subId/resourceGroups/$groupName/providers/Microsoft.Network/virtualNetworks/test/subnets/test"
1919

20-
echo -n "$subnetId" > "$BASEDIR/$groupName.subnetIdFile"
21-
2220
printf "\n4. Create network interface with:\r\nsubId='%s' \r\n& \r\nsubnetId='$subnetId'.\n" "$subId"
23-
azure network interface create --name test --resourcegroupname "$groupName" --location "$location" --subnetid @"$BASEDIR/$groupName.subnetIdFile"
24-
25-
rm -f "$BASEDIR/$groupName.subnetIdFile"
21+
export MSYS_NO_PATHCONV=1
22+
azure network interface create --name test --resourcegroupname "$groupName" --location "$location" --subnetid "$subnetId"
23+
export MSYS_NO_PATHCONV=
2624

2725
nicId="/subscriptions/$subId/resourceGroups/$groupName/providers/Microsoft.Network/networkInterfaces/test"
2826

0 commit comments

Comments
 (0)