Skip to content

Commit 2034f75

Browse files
Migrate ContainerInstance from generation to main (#22772)
* Move ContainerInstance to main * Update changelog * polish changelog --------- Co-authored-by: Nori Zhang <[email protected]>
1 parent 6cfbca0 commit 2034f75

File tree

52 files changed

+339
-284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+339
-284
lines changed

src/ContainerInstance/Az.ContainerInstance.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/30/2023
6+
# Generated on: 9/12/2023
77
#
88

99
@{
@@ -125,7 +125,7 @@ PrivateData = @{
125125
# IconUri = ''
126126

127127
# ReleaseNotes of this module
128-
ReleaseNotes = '* Fixed a bug in ''Invoke-AzContainerInstanceCommand'' when no result was returned under some conditions [#22453]'
128+
# ReleaseNotes = ''
129129

130130
# Prerelease string of this module
131131
# Prerelease = ''

src/ContainerInstance/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Added breaking change warning message for `Get/New/Remove-ContainerGroup`, `New-ContainerInstanceInitDefinitionObject`, `New-ContainerInstanceObject` [#22268]
23+
- Output properties starting with `PreviouState` will be corrected to `PreviousState`
2224

2325
## Version 3.2.1
2426
* Fixed a bug in `Invoke-AzContainerInstanceCommand` when no result was returned under some conditions [#22453]

src/ContainerInstance/ContainerInstance.sln

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{ECF1F067-4F78-4602-8B5B-0921A62735FD}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{00160F98-7E62-4B8F-A7B4-8D13E3CBA3F1}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{480C952C-5C5E-4F37-9D00-7AE941D096DC}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{F864D6C2-D707-4574-B3FE-4B8E7717E9E4}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{620242F8-B561-4AD7-AB19-31E2C6DC3E05}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{F14EAEC3-1896-4F98-84AB-3F2DC75D3D9E}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{2ABB39C7-7007-4EDC-ADD3-C8CD9F09C4B1}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{980F0E51-E2F1-4466-808C-74F560823737}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{96910144-B768-48B8-BF8F-19C8087BF971}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{7B19AABA-5626-4C0B-A31E-2C91A5651861}"
1717
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ContainerInstance", "Az.ContainerInstance.csproj", "{9E349674-A1EC-47B2-975B-3C7934918FAE}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ContainerInstance", "Az.ContainerInstance.csproj", "{BFF478C0-595C-4C97-B85B-48E719994701}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{ECF1F067-4F78-4602-8B5B-0921A62735FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{ECF1F067-4F78-4602-8B5B-0921A62735FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{ECF1F067-4F78-4602-8B5B-0921A62735FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{ECF1F067-4F78-4602-8B5B-0921A62735FD}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{480C952C-5C5E-4F37-9D00-7AE941D096DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{480C952C-5C5E-4F37-9D00-7AE941D096DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{480C952C-5C5E-4F37-9D00-7AE941D096DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{480C952C-5C5E-4F37-9D00-7AE941D096DC}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{620242F8-B561-4AD7-AB19-31E2C6DC3E05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{620242F8-B561-4AD7-AB19-31E2C6DC3E05}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{620242F8-B561-4AD7-AB19-31E2C6DC3E05}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{620242F8-B561-4AD7-AB19-31E2C6DC3E05}.Release|Any CPU.Build.0 = Release|Any CPU
41-
{2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{980F0E51-E2F1-4466-808C-74F560823737}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{980F0E51-E2F1-4466-808C-74F560823737}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{980F0E51-E2F1-4466-808C-74F560823737}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{980F0E51-E2F1-4466-808C-74F560823737}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50-
{57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
51-
{57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{9E349674-A1EC-47B2-975B-3C7934918FAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54-
{9E349674-A1EC-47B2-975B-3C7934918FAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
55-
{9E349674-A1EC-47B2-975B-3C7934918FAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
56-
{9E349674-A1EC-47B2-975B-3C7934918FAE}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{00160F98-7E62-4B8F-A7B4-8D13E3CBA3F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{00160F98-7E62-4B8F-A7B4-8D13E3CBA3F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{00160F98-7E62-4B8F-A7B4-8D13E3CBA3F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{00160F98-7E62-4B8F-A7B4-8D13E3CBA3F1}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{F864D6C2-D707-4574-B3FE-4B8E7717E9E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{F864D6C2-D707-4574-B3FE-4B8E7717E9E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{F864D6C2-D707-4574-B3FE-4B8E7717E9E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{F864D6C2-D707-4574-B3FE-4B8E7717E9E4}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{F14EAEC3-1896-4F98-84AB-3F2DC75D3D9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{F14EAEC3-1896-4F98-84AB-3F2DC75D3D9E}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{F14EAEC3-1896-4F98-84AB-3F2DC75D3D9E}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{F14EAEC3-1896-4F98-84AB-3F2DC75D3D9E}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{2ABB39C7-7007-4EDC-ADD3-C8CD9F09C4B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{2ABB39C7-7007-4EDC-ADD3-C8CD9F09C4B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{2ABB39C7-7007-4EDC-ADD3-C8CD9F09C4B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{2ABB39C7-7007-4EDC-ADD3-C8CD9F09C4B1}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{96910144-B768-48B8-BF8F-19C8087BF971}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{96910144-B768-48B8-BF8F-19C8087BF971}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{96910144-B768-48B8-BF8F-19C8087BF971}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{96910144-B768-48B8-BF8F-19C8087BF971}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{7B19AABA-5626-4C0B-A31E-2C91A5651861}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{7B19AABA-5626-4C0B-A31E-2C91A5651861}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{7B19AABA-5626-4C0B-A31E-2C91A5651861}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{7B19AABA-5626-4C0B-A31E-2C91A5651861}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{BFF478C0-595C-4C97-B85B-48E719994701}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{BFF478C0-595C-4C97-B85B-48E719994701}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{BFF478C0-595C-4C97-B85B-48E719994701}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{BFF478C0-595C-4C97-B85B-48E719994701}.Release|Any CPU.Build.0 = Release|Any CPU
5757
EndGlobalSection
5858
EndGlobal

src/ContainerInstance/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,26 @@ directive:
151151
}
152152
# - model-cmdlet:
153153
# - Volume # Hide to customize AzureFileStorageAccountKey from string to securestring
154+
155+
# Breaking change warning message
156+
- where:
157+
subject: ^ContainerGroup$|^ContainerInstanceInitDefinitionObject$|^ContainerInstanceObject$
158+
set:
159+
breaking-change:
160+
deprecated-output-properties:
161+
- PreviouState
162+
- PreviouStateDetailStatus
163+
- PreviouStateExitCode
164+
- PreviouStateFinishTime
165+
- PreviouStateStartTime
166+
new-output-properties:
167+
- PreviousState
168+
- PreviousStateDetailStatus
169+
- PreviousStateExitCode
170+
- PreviousStateFinishTime
171+
- PreviousStateStartTime
172+
change-description: The parameters starts with PreviouState will be corrected as PreviousState.
173+
deprecated-by-version: 4.0.0
174+
deprecated-by-azversion: 11.0.0
175+
change-effective-date: 2023/11/15
154176
```

src/ContainerInstance/UX/Microsoft.ContainerInstance/containerGroups-containers.json

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/ContainerInstance/UX/Microsoft.ContainerInstance/containerGroups.json

Lines changed: 0 additions & 176 deletions
This file was deleted.

src/ContainerInstance/exports/Add-AzContainerInstanceOutput.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ begin {
142142
}
143143
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
144144
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
145+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
146+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
147+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
148+
}
145149
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
146150
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
147151
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

0 commit comments

Comments
 (0)