location: requireLocation()

in src/handler.ts [380:406]


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

async function stackValidate(
  config: DeploymentStackConfig,
  files: ParsedFiles,
) {
  const name = config.name ?? defaultName;
  const scope = config.scope;
  const client = getStacksClient(config, scope);
  const stack = getStack(config, files);

  switch (scope.type) {
    case "resourceGroup":
      return await client.deploymentStacks.beginValidateStackAtResourceGroupAndWait(
        scope.resourceGroup,
        name,
        stack,
      );
    case "subscription":
      return await client.deploymentStacks.beginValidateStackAtSubscriptionAndWait(
        name,
        {