Skip to content

Commit 6bc0ddf

Browse files
committed
Fix userAssignedIdentity value bug
1 parent 2527490 commit 6bc0ddf

File tree

5 files changed

+19
-20
lines changed

5 files changed

+19
-20
lines changed

src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@
2929

3030

3131

32+

src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,9 @@ function New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath {
218218

219219
# If user input UserAssignedIdentity
220220
if ($PSBoundParameters.ContainsKey('UserAssignedIdentity')) {
221-
$userIdentityObject = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.UserAssignedIdentity]::New()
222221
$IdentityUserAssignedIdentity = @{}
223222
foreach ($item in $PSBoundParameters.UserAssignedIdentity) {
224-
$IdentityUserAssignedIdentity.Add($item, $userIdentityObject )
223+
$IdentityUserAssignedIdentity.Add($item, @{})
225224
}
226225
$bodyHashTable.identity.userAssignedIdentities = $IdentityUserAssignedIdentity
227226
$null = $PSBoundParameters.Remove('UserAssignedIdentity')
@@ -273,8 +272,7 @@ function New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath {
273272

274273
$JsonString = $bodyHashTable | ConvertTo-Json -Depth 100
275274
$null = $PSBoundParameters.Add("JsonString", $JsonString)
276-
277-
275+
278276
Az.SapVirtualInstance.private\New-AzWorkloadsSapVirtualInstance_CreateWithJsonString @PSBoundParameters
279277
} catch {
280278
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "1b4b619d-2e1b-4d10-8050-5e10903d36e7"
2+
"generate_Id": "b1b4927c-1ce8-4cfd-a5ab-635f801b67b0"
33
}

src/Workloads/Workloads.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Monitors.Autorest", "Monito
2525
EndProject
2626
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SapVirtualInstance.Autorest", "SapVirtualInstance.Autorest", "{EB808B23-4039-57BF-39D0-8ACE41B9711F}"
2727
EndProject
28-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SapVirtualInstance", "..\..\generated\Workloads\SapVirtualInstance.Autorest\Az.SapVirtualInstance.csproj", "{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}"
28+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SapVirtualInstance", "..\..\generated\Workloads\SapVirtualInstance.Autorest\Az.SapVirtualInstance.csproj", "{1AC47149-8B47-43DC-A827-124E73148902}"
2929
EndProject
3030
Global
3131
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -133,18 +133,18 @@ Global
133133
{74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|x64.Build.0 = Release|Any CPU
134134
{74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|x86.ActiveCfg = Release|Any CPU
135135
{74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|x86.Build.0 = Release|Any CPU
136-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
137-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
138-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Debug|x64.ActiveCfg = Debug|Any CPU
139-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Debug|x64.Build.0 = Debug|Any CPU
140-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Debug|x86.ActiveCfg = Debug|Any CPU
141-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Debug|x86.Build.0 = Debug|Any CPU
142-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
143-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Release|Any CPU.Build.0 = Release|Any CPU
144-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Release|x64.ActiveCfg = Release|Any CPU
145-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Release|x64.Build.0 = Release|Any CPU
146-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Release|x86.ActiveCfg = Release|Any CPU
147-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9}.Release|x86.Build.0 = Release|Any CPU
136+
{1AC47149-8B47-43DC-A827-124E73148902}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
137+
{1AC47149-8B47-43DC-A827-124E73148902}.Debug|Any CPU.Build.0 = Debug|Any CPU
138+
{1AC47149-8B47-43DC-A827-124E73148902}.Debug|x64.ActiveCfg = Debug|Any CPU
139+
{1AC47149-8B47-43DC-A827-124E73148902}.Debug|x64.Build.0 = Debug|Any CPU
140+
{1AC47149-8B47-43DC-A827-124E73148902}.Debug|x86.ActiveCfg = Debug|Any CPU
141+
{1AC47149-8B47-43DC-A827-124E73148902}.Debug|x86.Build.0 = Debug|Any CPU
142+
{1AC47149-8B47-43DC-A827-124E73148902}.Release|Any CPU.ActiveCfg = Release|Any CPU
143+
{1AC47149-8B47-43DC-A827-124E73148902}.Release|Any CPU.Build.0 = Release|Any CPU
144+
{1AC47149-8B47-43DC-A827-124E73148902}.Release|x64.ActiveCfg = Release|Any CPU
145+
{1AC47149-8B47-43DC-A827-124E73148902}.Release|x64.Build.0 = Release|Any CPU
146+
{1AC47149-8B47-43DC-A827-124E73148902}.Release|x86.ActiveCfg = Release|Any CPU
147+
{1AC47149-8B47-43DC-A827-124E73148902}.Release|x86.Build.0 = Release|Any CPU
148148
EndGlobalSection
149149
GlobalSection(SolutionProperties) = preSolution
150150
HideSolutionNode = FALSE
@@ -156,6 +156,6 @@ Global
156156
{21B0E1A3-B9B6-42E9-97B7-DC1A56FDBABA} = {CDFD4C75-7CF6-4B30-9A7E-D8B5D25EB75A}
157157
{84EB3D08-249C-4900-8E17-832EC2DB5494} = {CDFD4C75-7CF6-4B30-9A7E-D8B5D25EB75A}
158158
{CF8A9A95-4825-47E0-86E7-2788A2127BE1} = {CDFD4C75-7CF6-4B30-9A7E-D8B5D25EB75A}
159-
{AE3DDB11-00E9-4BFE-B679-62DBE359E0C9} = {EB808B23-4039-57BF-39D0-8ACE41B9711F}
159+
{1AC47149-8B47-43DC-A827-124E73148902} = {EB808B23-4039-57BF-39D0-8ACE41B9711F}
160160
EndGlobalSection
161161
EndGlobal

src/Workloads/Workloads/Az.Workloads.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/18/2025
6+
# Generated on: 8/20/2025
77
#
88

99
@{

0 commit comments

Comments
 (0)