---
title: "PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}"
method: PUT
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}"
tags: ["DeploymentScripts"]
---

# PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}

`PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}`

Creates a deployment script.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `scriptName` string, required

## Query parameters

- `api-version` string, required

## Request body

- DeploymentScript — Common properties for all Azure resources.
  - `id` string — String Id used to locate any resource on Azure.
  - `name` string — Name of this resource.
  - `type` string — Type of this resource.

## Response `200`

OK -- Deployment script is updated.

- DeploymentScript — Common properties for all Azure resources.
  - `id` string — String Id used to locate any resource on Azure.
  - `name` string — Name of this resource.
  - `type` string — Type of this resource.

## Other responses

- `201` — Created -- Deployment script created.
- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/deploymentscriptsclient.md) · [All operations](https://skmtc.dev/azure/apis/deploymentscriptsclient/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/deploymentscriptsclient/revisions/b65ddd0c91b7/schema)
