Error when trying to deploy from ARM in Microsoft Learn platform

Aitor Aguirre 0 Reputation points

Following the course in, I get an error when trying to deploy the ARM file. When I execute this command:

az deployment group create -g $resourceGroupName `
--template-file ./azure-sql-iot/azure_deployment/template.json `
    --parameters `
    iothub_name=$iotHub `
    server_sql_name=$serverName `
    server_admin_name=$adminSqlLogin `
    server_admin_password=$password `
    site_iot_name=$iotSite `
    serverfarm_iot_name=$iotServerFarm `
    virtualmachine_devicesimulator_name=$iotSimulator `
    logworkspace_name=$logWorkspace `
    storageaccount_iothub_name=$iotStorageAccount `
    storageaccount_iothub_container=$storageContainer `
    networkinterface_devicesimulator_name=$networkInterface `
    virtualnetwork_iot_name=$vNet `
    ip_address_name=$ipAddressName `

I get this error: Please provide string value for 'location' (? for help): northeurope

{"code": "InvalidTemplateDeployment", "message": "The template deployment 'template' is not valid according to the validation procedure. The tracking id is 'b531b7f9-7ecb-4b81-8e84-ea45b3c18836'. See inner errors for details."}

Inner Errors:

{"code": "ValidationForResourceFailed", "message": "Validation failed for a resource. Check 'Error.Details[0]' for more information."}

Inner Errors:

{"code": "FreeOrSharedFunctionsAppServicePlanNotSupported", "message": "Function apps are not supported in Free or Shared App Service Plans."}

Can someone point me in the right direction? If I am working in my sandbox, how is it possible to get this error? (I confirm the sandbox it still up).

Thanks in advance

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
393 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,664 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,401 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 19,646 Reputation points Microsoft Employee

    @Aitor Aguirre Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    We see that the issue is in the template.json file and as mentioned in the error message function App are supported in either of these plans (Consumption, elastic Premium and Dedicated App service plan) and it is not supported in Free tier plan.

    I would suggest you to raise/report the issue from bottom of the page as shown below.

    User's image

    0 comments No comments