location: requireLocation()

in src/handler.ts [237:263]


          location: requireLocation(config),
        },
        getCreateOperationOptions(),
      );
  }
}

async function deploymentValidate(
  config: DeploymentsConfig,
  files: ParsedFiles,
) {
  const name = config.name ?? defaultName;
  const scope = config.scope;
  const client = getDeploymentClient(config, scope);
  const deployment = getDeployment(config, files);

  switch (scope.type) {
    case "resourceGroup":
      return await client.deployments.beginValidateAndWait(
        scope.resourceGroup,
        name,
        deployment,
      );
    case "subscription":
      return await client.deployments.beginValidateAtSubscriptionScopeAndWait(
        name,
        {