Share via


CloudService Class

Definition

Describes the cloud service.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudServiceTypeConverter))]
public class CloudService : Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.CloudServiceTypeConverter))>]
type CloudService = class
    interface ICloudService
    interface IJsonSerializable
Public Class CloudService
Implements ICloudService
Inheritance
CloudService
Attributes
Implements

Constructors

CloudService()

Creates an new CloudService instance.

Properties

AllowModelOverride

(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is false.

Configuration

Specifies the XML service configuration (.cscfg) for the cloud service.

ConfigurationUrl

Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.

ExtensionProfile

Describes a cloud service extension profile.

Id

Resource Id.

Location

Resource location.

Name

Resource name.

NetworkProfile

Network Profile for the cloud service.

OSProfile

Describes the OS profile for the cloud service.

PackageUrl

Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.

ProvisioningState

The provisioning state, which only appears in the response.

ResourceGroupName
RoleProfile

Describes the role profile for the cloud service.

StartCloudService

(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is true. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.

SystemDataCreatedAt

Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04.

SystemDataLastModifiedAt

Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04.

Tag

Resource tags.

Type

Resource type.

UniqueId

The unique identifier for the cloud service.

UpgradeMode

Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

Auto

Manual

Simultaneous

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.

Zone

List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of CloudService.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of CloudService.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService.

FromJsonString(String)

Creates a new instance of CloudService, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of CloudService into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to