Skip to content

Commit

Permalink
Merge pull request #52 from suvie-eng/fix-azure-iot-extension-name
Browse files Browse the repository at this point in the history
Update name of azure-iot extension
  • Loading branch information
rojer committed Feb 3, 2021
2 parents 37a6dad + 337fcb0 commit 59c6c95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/azure/azure.go
Expand Up @@ -74,10 +74,10 @@ func AzureIoTSetup(ctx context.Context, devConn dev.DevConn) error {
return errors.Annotatef(err, "Failed to run Azure CLI utility. Make sure it is installed - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli")
}
// Check that IoT extension is installed
if err := ourutil.RunCmd(ourutil.CmdOutOnError, "az", "extension", "show", "--name", "azure-cli-iot-ext"); err != nil {
if err := ourutil.RunCmd(ourutil.CmdOutOnError, "az", "extension", "show", "--name", "azure-iot"); err != nil {
ourutil.Reportf("Installing azure-cli-iot extension...")
if err := ourutil.RunCmd(ourutil.CmdOutOnError, "az", "extension", "add", "--name", "azure-cli-iot-ext", "--yes"); err != nil {
return errors.Annotatef(err, "azure-cli-iot-ext was not found and could not be installed. Please do it manually")
if err := ourutil.RunCmd(ourutil.CmdOutOnError, "az", "extension", "add", "--name", "azure-iot", "--yes"); err != nil {
return errors.Annotatef(err, "azure-iot was not found and could not be installed. Please do it manually")
}
}
if err := ourutil.RunCmd(ourutil.CmdOutOnError, "az", "account", "show"); err != nil {
Expand Down

0 comments on commit 59c6c95

Please sign in to comment.