---
title: "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}"
tags: ["VirtualEnclave"]
---

# PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}

`PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Update a EnclaveResource

## Path parameters

- `virtualEnclaveName` string, required

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/SubscriptionIdParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ResourceGroupNameParameter` (unresolved $ref)

## Request body

- VirtualEnclavePatchModel: Virtual Enclave Patch Model
  - `properties` VirtualEnclavePatchProperties: Virtual Enclave Patchable Properties
    - `enclaveVirtualNetwork` EnclaveVirtualNetworkModel: Enclave Virtual Network Properties
      - `name` string: Network Name.
      - `networkSize` string: Network Size.
      - `customCidrRange` string: Custom CIDR Range.
      - `subnetConfigurations` SubnetConfiguration[]: Subnet Configurations.
        - `name` string, required: Subnet name.
        - `id` string, arm-id: A type definition that refers the id to an Azure Resource Manager resource.
        - `networkPrefixSize` integer, required: Network prefix size.
        - `subnetDelegation` string: Subnet delegation.
        - `addressPrefix` string: Address prefix.
        - `networkSecurityGroupId` string, arm-id: A type definition that refers the id to an Azure Resource Manager resource.
      - `allowSubnetCommunication` boolean: Allow Subnet Communication.
      - `connectToAzureServices` boolean: Connect to Azure Services (True or False).
    - `bastionEnabled` boolean: Deploy Bastion service (True or False).
    - `enclaveDefaultSettings` EnclaveDefaultSettingsPatchModel: Virtual Enclave Default Settings
      - `diagnosticDestination` 'CommunityOnly' | 'EnclaveOnly' | 'Both': Specifies the destination of where to store diagnostic logs.
    - `maintenanceModeConfiguration` MaintenanceModeConfigurationPatchModel: Maintenance Mode Patch Model
      - `mode` 'On' | 'CanNotDelete' | 'Off' | 'General' | 'Advanced': The maintenance mode for a virtual enclave.
      - `principals` Principal[]: The user, group or service principal object affected by Maintenance Mode
        - `id` string, required: The object id associated with the principal
        - `type` 'User' | 'Group' | 'ServicePrincipal', required: The type of a virtual enclave principal.
      - `justification` 'Networking' | 'Governance' | 'Off': The justification for entering or exiting virtual enclave maintenance mode.
  - `identity` AzureResourceManagerCommonTypesManagedServiceIdentityUpdate: Managed service identity (system assigned and/or user assigned identities)
    - `type` ManagedServiceIdentityType (unresolved $ref)
    - `userAssignedIdentities` object: The identities assigned to this resource by the user.
  - `tags` object: Resource tags.

## Response `200`

Azure operation completed successfully.

- EnclaveResource (unresolved $ref)

## Other responses

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

---

[API](https://skmtc.dev/azure/apis/mission-microsoft-mission-mission.md) - [All operations](https://skmtc.dev/azure/apis/mission-microsoft-mission-mission/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/mission-microsoft-mission-mission/revisions/6cb808879aa2?raw)
