---
title: "PATCH /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}"
method: PATCH
path: "/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}"
tags: ["StorageClass"]
---

# PATCH /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}

`PATCH /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}`

Update a StorageClassResource

## Path parameters

- `resourceUri` string, required
- `storageClassName` string, required

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Request body

- StorageClassResourceUpdate — The model for updating a storageClass
  - `properties` StorageClassPropertiesUpdate — The model for updating storageClass properties
    - `allowVolumeExpansion` 'Allow' | 'Disallow' — Ability to expand volumes of a storage class
    - `mountOptions` string[] — Additional mount options
    - `accessModes` AccessMode[] — The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]
    - `dataResilience` 'NotDataResilient' | 'DataResilient' — Data resilience tier of a storage class
    - `failoverSpeed` 'NotAvailable' | 'Slow' | 'Fast' | 'Super' — Failover tier of a storage class
    - `limitations` string[] — Limitations of the storage class
    - `performance` 'Undefined' | 'Basic' | 'Standard' | 'Premium' | 'Ultra' — Performance tier of a storage class
    - `priority` integer — Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use
    - `typeProperties` StorageClassTypePropertiesUpdate — The model for update a storageClass
      - `backingStorageClassName` string — The backing storageclass used to create new storageclass
      - `azureStorageAccountName` string — Azure Storage Account Name
      - `azureStorageAccountKey` string, password — Azure Storage Account Key
      - `server` string — NFS Server
      - `share` string — NFS share
      - `subDir` string — Sub directory under share. If the sub directory doesn't exist, driver will create it
      - `mountPermissions` string — Mounted folder permissions. Default is 0. If set as non-zero, driver will perform `chmod` after mount
      - `onDelete` 'Delete' | 'Retain' — The action to take when a NFS volume is deleted
      - `source` string — SMB Source
      - `username` string — Server username
      - `password` string, password — Server password
      - `domain` string — Server domain

## Response `200`

Azure operation completed successfully.

- StorageClassResource — unresolved $ref

## Other responses

- `202` — Resource update request accepted.
- `default` — An unexpected error response.

---

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