az deployment group create can't find my json file

Walter Halvorsen 0 Reputation points
2024-08-05T23:43:47.4333333+00:00

In the exercise to deploy an ARM template, I created the azuredeploy.json file and saved it, but the the command to deploy it indicates that the file was not found.

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,476 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Konstantinos Passadis 18,991 Reputation points MVP
    2024-08-06T00:05:56.2066667+00:00

    Hello @Walter Halvorsen

    I guess you are talking about this :

    templateFile="azuredeploy.json"

    today=$(date +"%d-%b-%Y")

    DeploymentName="addfunction-"$today

    Be careful, the file is in the same directory as your code !

    Also check just in case it is not a txt extension , it may happen sometimes when copying !

    --

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.