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

cannot find the json file #563

Open
derekdai1978 opened this issue Apr 7, 2020 · 4 comments
Open

cannot find the json file #563

derekdai1978 opened this issue Apr 7, 2020 · 4 comments

Comments

@derekdai1978
Copy link

Under the folder , should there be a file "AzureStackCapabilities_TP3.json"?

@keystroke
Copy link
Contributor

What are you trying to do? Can you provide more information? Are you running a specific command and it doesn't behavior the way you expect? What JSON file and folder are you referencing?

@derekdai1978
Copy link
Author

Here is what I am doing,
by reference of the readme file in this folder <\AzureStack-Tools-master\TemplateValidator>, it tells me (below quoted from readme file) there should be a file <.\AzureStackCapabilities_TP3.json> under the same folder.

```powershell
$TemplatePath = "<Provide Template(s) Path>"
$CapabilitiesPath = ".\AzureStackCapabilities_TP3.json"
Test-AzureRMTemplate -TemplatePath $TemplatePath -CapabilitiesPath $CapabilitiesPath -Verbose #-IncludeComputeCapabilities -IncludeStorageCapabilities

@keystroke
Copy link
Contributor

Looks like you are just missing the first instruction:

Generate the Cloud capabilities json by Get-AzureRMCloudCapability cmdlet under module .\CloudCapabilities\AzureRM.CloudCapabilities.psm1 based on your environment.

So it seems you use that command to generate the JSON file that describe the capabilities of the target cloud. It is setup this way because different Azure Stack environments may be on different versions, etc. and may not support some capabilities that other environments do.

@alexsmithMSFT
Copy link
Contributor

alexsmithMSFT commented Sep 30, 2021

It would be best us use Get-AzureRMCloudCapability to generate a fresh AzureCloudCapabilities.Json from the target Azure Stack Hub environment.
But we should still remove references to the sample AzureStackCapabilities_TP3.json file mentioned here-https://github.com/Azure/AzureStack-Tools/tree/master/TemplateValidator#prerequisites
Which is no longer available in the specified repos- https://github.com/Azure/AzureStack-QuickStart-Templates/search?q=AzureStackCapabilities_TP3.json

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

No branches or pull requests

3 participants