Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The arm-ttk installs successfully, but is invisible #729

Open
brentarias opened this issue Jan 31, 2023 · 1 comment
Open

The arm-ttk installs successfully, but is invisible #729

brentarias opened this issue Jan 31, 2023 · 1 comment

Comments

@brentarias
Copy link

brentarias commented Jan 31, 2023

On Windows 11, I opened PowerShell Core (v7.3) and have executed the following command:

PS C:\Users\BArias\Downloads\arm-template-toolkit\arm-ttk> Import-Module .\arm-ttk.psd1
A newer version of the ARM-TTK is available at: https://github.com/Azure/arm-ttk/releases
Installed Version: 0.21
Latest Version: 0.22

Unfortunately, I am unable to confirm that any module had been installed. With Get-Module I don't know what name to search for, but any combination of "arm" or "ttk" returns nothing. Furthermore, the Test-AzTemplate cmdlet it was supposed to provide is AWOL. If I type in Test-AzTemplate I get the following:

PowerShell 7.3.2
PS C:\Users\BArias> Test-AzTemplate
Test-AzTemplate: The term 'Test-AzTemplate' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS C:\Users\BArias>

I then try this...

PS C:\repos> Get-Command Test-AzTemplate -All
Get-Command: The term 'Test-AzTemplate' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I have also attempted to access the Test-AzTemplate command directly, like this:

PS C:\repos\marketplace\arm-new> C:\Users\BArias\Downloads\arm-template-toolkit\arm-ttk\Test-AzTemplate.ps1 -TemplatePath mainTemplate.json
PS C:\repos\marketplace\arm-new>

The result is that it does absolutely nothing. No errors, no processing. My PS prompt is given back, indicating nothing happened.

Why does arm-ttk act as though it is a ghost? It is as if it simply isn't there.

I have then made the effort to work with a Windows 10 laptop. I got exactly the same results. I asked a friend to attempt the same installation...but it worked for him. We started looking for differences between his configuration and mine, and the only difference we noted...is that he did not have the Azure CLI installed.

Perhaps the arm-ttk module is not compatible with the Azure CLI?

@ghost ghost added the Needs: triage 🔍 label Jan 31, 2023
@vidapour
Copy link

vidapour commented Jan 19, 2024

The Azure Apps team uses the TTK with CLI, so it doesn't seem like that would be the issue.

Can you try re-running step 5 in this guidance and see if that works? https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/test-toolkit#install-on-windows

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants