Skip to content

cannot find the json file #563

Open
Open

Description

@derekdai1978

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

Activity

  1. keystroke commented on Apr 7, 2020

    @keystroke
    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?

  2. derekdai1978 commented on Apr 7, 2020

    @derekdai1978
    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

  3. keystroke commented on Apr 7, 2020

    @keystroke
    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.

  4. alexsmithMSFT commented on Sep 30, 2021

    @alexsmithMSFT
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions