Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@
[assembly: System.Reflection.AssemblyVersionAttribute("2.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]


249 changes: 31 additions & 218 deletions src/CloudService/CloudService.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ input-file:
title: CloudService
module-version: 0.1.0

identity-correction-for-post: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
- where:
subject: ^CloudServiceOperatingSystemOSFamily$
Expand All @@ -71,8 +65,20 @@ directive:
set:
subject: CloudServiceOSVersion
- where:
variant: ^Restart$|^RestartViaIdentity$|^Reimage$|^ReimageViaIdentity$|^Rebuild$|^RebuildViaIdentity$
subject: ^CloudService$|^RebuildCloudService$
variant: ^Rebuild$|^RebuildViaIdentity$|^RebuildViaJsonFilePathViaJsonFilePath$|^RebuildViaJsonStringViaJsonString$
subject: RebuildCloudService
remove: true
- where:
subject: ^RebuildCloudService$
set:
subject: Rebuild
- where:
variant: ^Restart$|^RestartViaIdentity$|^Reimage$|^ReimageViaIdentity$
subject: ^CloudService$
remove: true
- where:
variant: ^RebuildViaIdentityRoleInstance$
subject: ^RebuildCloudServiceRoleInstance$
remove: true

- where:
Expand All @@ -88,27 +94,22 @@ directive:
subject: CloudServiceRoleInstanceReimage
verb: Invoke

- where:
subject: ^RebuildCloudService$
variant: ^RebuildExpanded$|^RebuildViaIdentityExpanded$
set:
subject: Rebuild
- where:
subject: ^RebuildCloudServiceRoleInstance$
variant: ^Rebuild$|^RebuildViaIdentity$
set:
subject: RoleInstanceRebuild

- where:
subject: ^CloudServiceUpdateDomain$
verb: Get
subject: ^CloudServicesUpdateDomain$
verb: Get|Update
remove: true
- where:
subject: ^WalkCloudServiceUpdateDomain$
variant: ^Walk$
subject: ^WalkCloudServicesUpdateDomain$
variant: ^Walk$|^WalkViaIdentity$|^WalkViaIdentityCloudService$|^WalkViaIdentityCloudServiceExpanded$|^WalkViaIdentityExpanded$|^WalkViaJsonFilePathViaJsonFilePath$|^WalkViaJsonStringViaJsonString$
remove: true
- where:
subject: ^WalkCloudServiceUpdateDomain$
subject: ^WalkCloudServicesUpdateDomain$
set:
subject: UpdateDomain
verb: Set
Expand All @@ -119,7 +120,7 @@ directive:
remove: true
- where:
subject: ^CloudServiceRoleInstance$
verb: Remove
verb: Remove|Update
remove: true
- where:
variant: ^Delete$|^DeleteViaIdentity$
Expand Down Expand Up @@ -320,203 +321,15 @@ directive:
transform: >-
return "string"

- where:
verb: Get|Update
subject: CloudService
set:
breaking-change:
deprecated-output-properties:
- Extension
- LoadBalancerConfiguration
- Secret
- Role
- Zone
new-output-properties:
- Extension
- LoadBalancerConfiguration
- Secret
- Role
- Zone
change-description: The types of the properties 'Extension', 'LoadBalancerConfiguration', 'Secret', 'Role', and 'Zone' will be changed from object to 'List'.
deprecated-by-version: 9.0.0
deprecated-by-azversion: 15.0.0
change-effective-date: 2025/11/03

- where:
verb: Get
subject: CloudServiceInstanceView
set:
breaking-change:
deprecated-output-properties:
- Statuses
- RoleInstanceStatusesSummary
- PrivateId
new-output-properties:
- Statuses
- RoleInstanceStatusesSummary
- PrivateId
change-description: The types of the properties 'Statuses', 'RoleInstanceStatusesSummary', and 'PrivateId' will be changed from object to 'List'.
deprecated-by-version: 9.0.0
deprecated-by-azversion: 15.0.0
change-effective-date: 2025/11/03

- where:
verb: Get
subject: NetworkInterface
set:
breaking-change:
deprecated-output-properties:
- ApplicationSecurityGroup
- CustomDnsConfig
- FlowLog
- LoadBalancerFrontendIPConfiguration
- NetworkSecurityGroupPropertiesNetworkInterface
- PrivateEndpointPropertiesNetworkInterface
- PrivateLinkServicePropertiesNetworkInterface
- IPConfiguration
- TapConfiguration
- PrivateEndpointConnection
- PrivateEndpointPropertiesIPConfiguration
- PrivateLinkServiceConnection
- ManualPrivateLinkServiceConnection
- PrivateLinkServicePropertiesIPConfiguration
- SecurityRule
- DefaultSecurityRule
- ApplicationGatewayIPConfiguration
- Delegation
- FlowLog
- IPConfiguration
- IPConfigurationProfile
- NetworkInterface
- PrivateEndpoint
- ResourceNavigationLink
- Route
- DefaultSecurityRule
- SecurityRule
- ServiceAssociationLink
- ServiceEndpointPolicy
- ServiceEndpoint
- NetworkSecurityGroupPropertiesSubnet
- RouteTablePropertiesSubnet
- IPAllocation
- PropertiesAddressPrefixes
- PropertiesNetworkSecurityGroupPropertiesSubnets
- HostedWorkload
- VisibilitySubscription
- DnsSettingDnsServer
- DnsSettingAppliedDnsServer
- AutoApprovalSubscription
- Fqdn
new-output-properties:
- ApplicationSecurityGroup
- CustomDnsConfig
- FlowLog
- LoadBalancerFrontendIPConfiguration
- NetworkSecurityGroupPropertiesNetworkInterface
- PrivateEndpointPropertiesNetworkInterface
- PrivateLinkServicePropertiesNetworkInterface
- IPConfiguration
- TapConfiguration
- PrivateEndpointConnection
- PrivateEndpointPropertiesIPConfiguration
- PrivateLinkServiceConnection
- ManualPrivateLinkServiceConnection
- PrivateLinkServicePropertiesIPConfiguration
- SecurityRule
- DefaultSecurityRule
- ApplicationGatewayIPConfiguration
- Delegation
- FlowLog
- IPConfiguration
- IPConfigurationProfile
- NetworkInterface
- PrivateEndpoint
- ResourceNavigationLink
- Route
- DefaultSecurityRule
- SecurityRule
- ServiceAssociationLink
- ServiceEndpointPolicy
- ServiceEndpoint
- NetworkSecurityGroupPropertiesSubnet
- RouteTablePropertiesSubnet
- IPAllocation
- PropertiesAddressPrefixes
- PropertiesNetworkSecurityGroupPropertiesSubnets
- HostedWorkload
- VisibilitySubscription
- DnsSettingDnsServer
- DnsSettingAppliedDnsServer
- AutoApprovalSubscription
- Fqdn
change-description: The types of the properties 'ApplicationSecurityGroup', 'CustomDnsConfig', 'FlowLog', 'LoadBalancerFrontendIPConfiguration', 'NetworkSecurityGroupPropertiesNetworkInterface', 'PrivateEndpointPropertiesNetworkInterface', 'PrivateLinkServicePropertiesNetworkInterface', 'IPConfiguration', 'TapConfiguration', 'PrivateEndpointConnection', 'PrivateEndpointPropertiesIPConfiguration', 'PrivateLinkServiceConnection', 'ManualPrivateLinkServiceConnection', 'PrivateLinkServicePropertiesIPConfiguration', 'SecurityRule', 'DefaultSecurityRule', 'ApplicationGatewayIPConfiguration', 'Delegation', 'FlowLog', 'IPConfiguration', 'IPConfigurationProfile', 'NetworkInterface', 'PrivateEndpoint', 'ResourceNavigationLink', 'Route', 'DefaultSecurityRule', 'SecurityRule', 'ServiceAssociationLink', 'ServiceEndpointPolicy', 'ServiceEndpoint', 'NetworkSecurityGroupPropertiesSubnet', 'RouteTablePropertiesSubnet', 'IPAllocation', 'PropertiesAddressPrefixes', 'PropertiesNetworkSecurityGroupPropertiesSubnets', 'HostedWorkload', 'VisibilitySubscription', 'DnsSettingDnsServer', 'DnsSettingAppliedDnsServer', 'AutoApprovalSubscription', 'Fqdn' will be changed from object to 'List'.
deprecated-by-version: 9.0.0
deprecated-by-azversion: 15.0.0
change-effective-date: 2025/11/03

- where:
verb: Get
subject: CloudServiceOSFamily
set:
breaking-change:
deprecated-output-properties:
- Version
new-output-properties:
- Version
change-description: The types of the properties 'Version' will be changed from object to 'List'.
deprecated-by-version: 9.0.0
deprecated-by-azversion: 15.0.0
change-effective-date: 2025/11/03

- where:
verb: Get
subject: PublicIPAddress
set:
breaking-change:
deprecated-output-properties:
- Zone
- IPTag
- PublicIPAddress
- PublicIPPrefix
- Subnet
new-output-properties:
- Zone
- IPTag
- PublicIPAddress
- PublicIPPrefix
- Subnet
change-description: The types of the properties 'Zone', 'IPTag', 'PublicIPAddress', 'PublicIPPrefix', and 'Subnet' will be changed from object to 'List'.
deprecated-by-version: 9.0.0
deprecated-by-azversion: 15.0.0
change-effective-date: 2025/11/03

- where:
verb: Get
subject: CloudServiceRoleInstance
set:
breaking-change:
deprecated-output-properties:
- NetworkProfileNetworkInterface
- InstanceViewStatuses
new-output-properties:
- NetworkProfileNetworkInterface
- InstanceViewStatuses
change-description: The types of the properties 'NetworkProfileNetworkInterface' and 'InstanceViewStatuses' will be changed from object to 'List'.
deprecated-by-version: 9.0.0
deprecated-by-azversion: 15.0.0
change-effective-date: 2025/11/03

- where:
verb: Get
subject: CloudServiceRoleInstanceView
set:
breaking-change:
deprecated-output-properties:
- Statuses
new-output-properties:
- Statuses
change-description: The types of the properties 'Statuses' will be changed from object to 'List'.
deprecated-by-version: 9.0.0
deprecated-by-azversion: 15.0.0
change-effective-date: 2025/11/03
- model-cmdlet:
- model-name: Extension
cmdlet-name: New-AzCloudServiceExtensionObject
- model-name: LoadBalancerConfiguration
cmdlet-name: New-AzCloudServiceLoadBalancerConfigurationObject
# - model-name: LoadBalancerFrontendIPConfiguration
# cmdlet-name: New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject
- model-name: CloudServiceRoleProfileProperties
cmdlet-name: New-AzCloudServiceRoleProfilePropertiesObject
# - model-name: CloudServiceVaultSecretGroup
# cmdlet-name: New-AzCloudServiceVaultSecretGroupObject
```
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Create a CloudService Resource
#>

function New-AzCloudService {
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService')]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService", DeprecatedOutputProperties = ("Zone, Extension, LoadBalancerConfiguration, Secret, Role"), NewOutputProperties = ("Zone, Extension, LoadBalancerConfiguration, Secret, Role will be changed from object to 'List'."))]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudService')]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='quickCreateParameterSetWithoutStorage', Mandatory)]
Expand Down Expand Up @@ -87,7 +86,7 @@ function New-AzCloudService {
[Parameter(ParameterSetName='quickCreateParameterSetWithoutStorage', HelpMessage="Describes a cloud service extension profile.")]
[Parameter(ParameterSetName='quickCreateParameterSetWithStorage', HelpMessage="Describes a cloud service extension profile.")]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceExtensionProfile]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceExtensionProfile]
# Describes a cloud service extension profile.
# To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table.
${ExtensionProfile},
Expand All @@ -105,16 +104,16 @@ function New-AzCloudService {
[Parameter(ParameterSetName='quickCreateParameterSetWithoutStorage')]
[Parameter(ParameterSetName='quickCreateParameterSetWithStorage')]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},

[Parameter(ParameterSetName='quickCreateParameterSetWithoutStorage', HelpMessage="Update mode for the cloud service.")]
[Parameter(ParameterSetName='quickCreateParameterSetWithStorage', HelpMessage="Update mode for the cloud service.")]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode])]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.PSArgumentCompleterAttribute("Auto", "Manual", "Simultaneous")]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode]
[System.String]
# 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 <br /><br />**Auto**<br /><br />**Manual** <br /><br />**Simultaneous**<br /><br />If not specified, the default value is Auto.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Create a in-memory object for Diagnostics Extension
#>

function New-AzCloudServiceDiagnosticsExtension {
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension')]
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.Extension", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension", DeprecatedOutputProperties = ("RolesAppliedTo System.String[]"), NewOutputProperties = ("RolesAppliedTo System.Collections.Generic.List`1[System.String]"))]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Extension')]
param(
[Parameter(HelpMessage="Name of Diagnostics Extension.", Mandatory)]
[string] $Name,
Expand Down
Loading