CognitiveServicesManagedNetworkSettingsCollection.CreateOrUpdate Method

Definition

PUT API for managed network settings of a cognitive services account.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedNetworks/{managedNetworkName}.
  • Operation Id. : ManagedNetworkSettingsPropertiesBasicResources_Put.
  • Default Api Version. : 2026-03-15-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedNetworkSettingsResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string managedNetworkName, Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedNetworkSettingsData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedNetworkSettingsData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedNetworkSettingsResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedNetworkSettingsData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedNetworkSettingsResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, managedNetworkName As String, data As CognitiveServicesManagedNetworkSettingsData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of CognitiveServicesManagedNetworkSettingsResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

managedNetworkName
String

Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.

data
CognitiveServicesManagedNetworkSettingsData

The Managed Network Settings object of the account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managedNetworkName or data is null.

managedNetworkName is an empty string, and was expected to be non-empty.

Applies to