Skip to content

Commit

Permalink
Updating MSI script to reflect recent changes in az cli (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuchandy authored Sep 7, 2017
1 parent 3d6c3c9 commit 490fb4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ public static boolean runSample(Azure azure) {
// Prepare custom script t install az cli that uses MSI to create a storage account
//
final String stgName = Utils.createRandomName("st44");
installCommand = installCommand.replace("{subscriptionID}", azure.subscriptionId())
.replace("{port}", "50342")
.replace("{stgName}", stgName)
installCommand = installCommand.replace("{stgName}", stgName)
.replace("{rgName}", rgName)
.replace("{location}", region.name());

Expand Down
4 changes: 2 additions & 2 deletions azure-samples/src/main/resources/create_resources_with_msi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
/usr/bin/yes | sudo apt install python-pip
/usr/bin/yes | sudo pip install --upgrade pip
sudo pip install azure-cli
az login -u $1@$2
az storage account create -n $3 -g $4 -l $5 --sku Premium_LRS
az login --msi
az storage account create -n $1 -g $2 -l $3 --sku Premium_LRS
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public void testDeployImageFromContainerRegistryToKubernetes() {
}

@Test
@Ignore("The updated az cli with --msi option will be published on sept/12/2017, disabling this test for now")
public void testManageStorageFromMSIEnabledVirtualMachine() {
Assert.assertTrue(ManageStorageFromMSIEnabledVirtualMachine.runSample(azure));
}
Expand Down

0 comments on commit 490fb4a

Please sign in to comment.