| Description | : Create or update a cloud service. Please note some properties can be set only during cloud service creation. |
| Reference | : Link ¶ |
⚶ Changes
{
"#id": "CloudServices_CreateOrUpdate",
"$parameters": {
"parameters": {
"$properties": [
{
"#name": "systemData",
"Description": {
"new": "Metadata pertaining to creation and last modification of the resource.",
"old": "The system meta data relating to this resource."
},
"$properties": [
{
"@added_005bdbbc62a04d409694783a0efde9f1": {
"#name": "createdBy",
"Description": "The identity that created the resource.",
"Required": false,
"Type": "string"
}
},
{
"@added_4510b9b738974383aee8315ccca25102": {
"#name": "createdByType",
"Description": "The type of identity that created the resource.",
"Enum": [
[
"User",
""
],
[
"Application",
""
],
[
"ManagedIdentity",
""
],
[
"Key",
""
]
],
"Required": false,
"Type": "string"
}
},
{
"#name": "createdAt",
"Description": {
"new": "The timestamp of resource creation (UTC).",
"old": "Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04."
}
},
{
"@added_941545ef03974761ac394f360cf98209": {
"#name": "lastModifiedBy",
"Description": "The identity that last modified the resource.",
"Required": false,
"Type": "string"
}
},
{
"@added_207a0d064b524d549dd0c0d556f2af66": {
"#name": "lastModifiedByType",
"Description": "The type of identity that last modified the resource.",
"Enum": [
[
"User",
""
],
[
"Application",
""
],
[
"ManagedIdentity",
""
],
[
"Key",
""
]
],
"Required": false,
"Type": "string"
}
},
{
"#name": "lastModifiedAt",
"Description": {
"new": "The timestamp of resource last modification (UTC)",
"old": "Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04."
}
}
]
}
]
}
},
"$responses": {
"200": {
"$properties": [
{
"#name": "systemData",
"Description": {
"new": "Metadata pertaining to creation and last modification of the resource.",
"old": "The system meta data relating to this resource."
},
"$properties": [
{
"@added_42596c86e10546d7beb966b3939788c9": {
"#name": "createdBy",
"Description": "The identity that created the resource.",
"Required": false,
"Type": "string"
}
},
{
"@added_f6b60dced4164060ba9b30c1e03b6e8c": {
"#name": "createdByType",
"Description": "The type of identity that created the resource.",
"Enum": [
[
"User",
""
],
[
"Application",
""
],
[
"ManagedIdentity",
""
],
[
"Key",
""
]
],
"Required": false,
"Type": "string"
}
},
{
"#name": "createdAt",
"Description": {
"new": "The timestamp of resource creation (UTC).",
"old": "Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04."
}
},
{
"@added_d5a6984f2bf74c06a71e97a740841bf3": {
"#name": "lastModifiedBy",
"Description": "The identity that last modified the resource.",
"Required": false,
"Type": "string"
}
},
{
"@added_3d857834453c49cf8eae8790d211bf00": {
"#name": "lastModifiedByType",
"Description": "The type of identity that last modified the resource.",
"Enum": [
[
"User",
""
],
[
"Application",
""
],
[
"ManagedIdentity",
""
],
[
"Key",
""
]
],
"Required": false,
"Type": "string"
}
},
{
"#name": "lastModifiedAt",
"Description": {
"new": "The timestamp of resource last modification (UTC)",
"old": "Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04."
}
}
]
}
]
},
"201": {
"$properties": [
{
"#name": "systemData",
"Description": {
"new": "Metadata pertaining to creation and last modification of the resource.",
"old": "The system meta data relating to this resource."
},
"$properties": [
{
"@added_8628ac1ffb294e8a9884cf698a5a5e9b": {
"#name": "createdBy",
"Description": "The identity that created the resource.",
"Required": false,
"Type": "string"
}
},
{
"@added_84936b833b6c43ec901e650a5fd58c6a": {
"#name": "createdByType",
"Description": "The type of identity that created the resource.",
"Enum": [
[
"User",
""
],
[
"Application",
""
],
[
"ManagedIdentity",
""
],
[
"Key",
""
]
],
"Required": false,
"Type": "string"
}
},
{
"#name": "createdAt",
"Description": {
"new": "The timestamp of resource creation (UTC).",
"old": "Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04."
}
},
{
"@added_b8dc19c44aa74d9e982d170d6b7b6f12": {
"#name": "lastModifiedBy",
"Description": "The identity that last modified the resource.",
"Required": false,
"Type": "string"
}
},
{
"@added_5ed906df8db540c098319f208de47cb8": {
"#name": "lastModifiedByType",
"Description": "The type of identity that last modified the resource.",
"Enum": [
[
"User",
""
],
[
"Application",
""
],
[
"ManagedIdentity",
""
],
[
"Key",
""
]
],
"Required": false,
"Type": "string"
}
},
{
"#name": "lastModifiedAt",
"Description": {
"new": "The timestamp of resource last modification (UTC)",
"old": "Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04."
}
}
]
}
]
}
}
}
⚼ Request
PUT:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}
{
resourceGroupName:
string
,
cloudServiceName:
string
,
subscriptionId:
string
,
api-version:
string
,
parameters:
}
{
,
id:
string
,
name:
string
,
type:
string
,
location:
string
,
tags:
object
,
properties:
{
,
packageUrl:
string
,
configuration:
string
,
configurationUrl:
string
,
startCloudService:
boolean
,
allowModelOverride:
boolean
,
upgradeMode:
enum
,
roleProfile:
{
,
roles:
}
[
]
,
{
,
name:
string
,
sku:
}
{
,
name:
string
,
tier:
string
,
capacity:
integer
,
}
osProfile:
{
,
secrets:
}
[
]
,
{
,
sourceVault:
{
,
id:
string
,
}
vaultCertificates:
}
[
]
,
{
,
certificateUrl:
string
,
isBootstrapCertificate:
boolean
,
}
networkProfile:
{
,
loadBalancerConfigurations:
[
]
,
{
,
id:
string
,
name:
string
,
properties:
}
{
,
frontendIpConfigurations:
}
[
]
,
{
,
name:
string
,
properties:
}
{
,
publicIPAddress:
{
,
id:
string
,
}
subnet:
{
,
id:
string
,
}
privateIPAddress:
string
,
}
slotType:
enum
,
swappableCloudService:
}
{
,
id:
string
,
}
extensionProfile:
{
,
extensions:
}
[
]
,
{
,
name:
string
,
properties:
}
{
,
publisher:
string
,
type:
string
,
typeHandlerVersion:
string
,
autoUpgradeMinorVersion:
boolean
,
settings:
object
,
protectedSettings:
object
,
protectedSettingsFromKeyVault:
{
,
sourceVault:
{
,
id:
string
,
}
secretUrl:
string
,
}
forceUpdateTag:
string
,
provisioningState:
string
,
rolesAppliedTo:
}
[
,
string
,
]
provisioningState:
string
,
uniqueId:
string
,
}
systemData:
{
,
createdBy:
string
,
createdByType:
enum
,
createdAt:
string
,
lastModifiedBy:
string
,
lastModifiedByType:
enum
,
lastModifiedAt:
string
,
}
zones:
}
[
,
string
,
]
⚐ Response (default)
{
error:
}
{
,
details:
[
]
,
{
,
code:
string
,
target:
string
,
message:
string
,
}
innererror:
{
,
exceptiontype:
string
,
errordetail:
string
,
}
code:
string
,
target:
string
,
message:
string
,
}
⚐ Response (200)
{
id:
string
,
name:
string
,
type:
string
,
location:
string
,
tags:
object
,
properties:
{
,
packageUrl:
string
,
configuration:
string
,
configurationUrl:
string
,
startCloudService:
boolean
,
allowModelOverride:
boolean
,
upgradeMode:
enum
,
roleProfile:
{
,
roles:
}
[
]
,
{
,
name:
string
,
sku:
}
{
,
name:
string
,
tier:
string
,
capacity:
integer
,
}
osProfile:
{
,
secrets:
}
[
]
,
{
,
sourceVault:
{
,
id:
string
,
}
vaultCertificates:
}
[
]
,
{
,
certificateUrl:
string
,
isBootstrapCertificate:
boolean
,
}
networkProfile:
{
,
loadBalancerConfigurations:
[
]
,
{
,
id:
string
,
name:
string
,
properties:
}
{
,
frontendIpConfigurations:
}
[
]
,
{
,
name:
string
,
properties:
}
{
,
publicIPAddress:
{
,
id:
string
,
}
subnet:
{
,
id:
string
,
}
privateIPAddress:
string
,
}
slotType:
enum
,
swappableCloudService:
}
{
,
id:
string
,
}
extensionProfile:
{
,
extensions:
}
[
]
,
{
,
name:
string
,
properties:
}
{
,
publisher:
string
,
type:
string
,
typeHandlerVersion:
string
,
autoUpgradeMinorVersion:
boolean
,
settings:
object
,
protectedSettings:
object
,
protectedSettingsFromKeyVault:
{
,
sourceVault:
{
,
id:
string
,
}
secretUrl:
string
,
}
forceUpdateTag:
string
,
provisioningState:
string
,
rolesAppliedTo:
}
[
,
string
,
]
provisioningState:
string
,
uniqueId:
string
,
}
systemData:
{
,
createdBy:
string
,
createdByType:
enum
,
createdAt:
string
,
lastModifiedBy:
string
,
lastModifiedByType:
enum
,
lastModifiedAt:
string
,
}
zones:
}
[
,
string
,
]
⚐ Response (201)
{
id:
string
,
name:
string
,
type:
string
,
location:
string
,
tags:
object
,
properties:
{
,
packageUrl:
string
,
configuration:
string
,
configurationUrl:
string
,
startCloudService:
boolean
,
allowModelOverride:
boolean
,
upgradeMode:
enum
,
roleProfile:
{
,
roles:
}
[
]
,
{
,
name:
string
,
sku:
}
{
,
name:
string
,
tier:
string
,
capacity:
integer
,
}
osProfile:
{
,
secrets:
}
[
]
,
{
,
sourceVault:
{
,
id:
string
,
}
vaultCertificates:
}
[
]
,
{
,
certificateUrl:
string
,
isBootstrapCertificate:
boolean
,
}
networkProfile:
{
,
loadBalancerConfigurations:
[
]
,
{
,
id:
string
,
name:
string
,
properties:
}
{
,
frontendIpConfigurations:
}
[
]
,
{
,
name:
string
,
properties:
}
{
,
publicIPAddress:
{
,
id:
string
,
}
subnet:
{
,
id:
string
,
}
privateIPAddress:
string
,
}
slotType:
enum
,
swappableCloudService:
}
{
,
id:
string
,
}
extensionProfile:
{
,
extensions:
}
[
]
,
{
,
name:
string
,
properties:
}
{
,
publisher:
string
,
type:
string
,
typeHandlerVersion:
string
,
autoUpgradeMinorVersion:
boolean
,
settings:
object
,
protectedSettings:
object
,
protectedSettingsFromKeyVault:
{
,
sourceVault:
{
,
id:
string
,
}
secretUrl:
string
,
}
forceUpdateTag:
string
,
provisioningState:
string
,
rolesAppliedTo:
}
[
,
string
,
]
provisioningState:
string
,
uniqueId:
string
,
}
systemData:
{
,
createdBy:
string
,
createdByType:
enum
,
createdAt:
string
,
lastModifiedBy:
string
,
lastModifiedByType:
enum
,
lastModifiedAt:
string
,
}
zones:
}
[
,
string
,
]