From d6b1004126e8d078081aac5f6b38669a85cd6010 Mon Sep 17 00:00:00 2001
From: "azure-pipelines[bot]"
<36771401+azure-pipelines[bot]@users.noreply.github.com>
Date: Mon, 4 Nov 2024 21:01:21 +0800
Subject: [PATCH] [skip ci] Archive a08bf8c4e4d7a279c8ec67d3353f95c44684cbc5
(#26589)
Co-authored-by: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com>
---
.../Properties/AssemblyInfo.cs | 30 ++-
.../exports/New-AzDataCollectionEndpoint.ps1 | 20 +-
.../exports/New-AzDataCollectionRule.ps1 | 20 +-
.../New-AzDataCollectionRuleAssociation.ps1 | 4 +-
.../exports/ProxyCmdletDefinitions.ps1 | 111 +++++----
.../Update-AzDataCollectionEndpoint.ps1 | 47 +++-
.../exports/Update-AzDataCollectionRule.ps1 | 16 +-
...Update-AzDataCollectionRuleAssociation.ps1 | 4 +-
.../generate-info.json | 2 +-
.../generated/api/DataCollectionRule.cs | 48 ++--
...AzDataCollectionEndpoint_CreateExpanded.cs | 68 +++---
...ollectionEndpoint_CreateViaJsonFilePath.cs | 4 +-
...aCollectionEndpoint_CreateViaJsonString.cs | 4 +-
...ollectionRuleAssociation_CreateExpanded.cs | 4 +-
...onRuleAssociation_CreateViaJsonFilePath.cs | 4 +-
...tionRuleAssociation_CreateViaJsonString.cs | 4 +-
.../NewAzDataCollectionRule_CreateExpanded.cs | 68 +++---
...ataCollectionRule_CreateViaJsonFilePath.cs | 4 +-
...zDataCollectionRule_CreateViaJsonString.cs | 4 +-
...AzDataCollectionEndpoint_UpdateExpanded.cs | 211 ++++++++++++++---
...ctionEndpoint_UpdateViaIdentityExpanded.cs | 216 +++++++++++++++---
...ollectionRuleAssociation_UpdateExpanded.cs | 4 +-
...leAssociation_UpdateViaIdentityExpanded.cs | 4 +-
...dateAzDataCollectionRule_UpdateExpanded.cs | 85 ++++---
...ollectionRule_UpdateViaIdentityExpanded.cs | 86 ++++---
.../resources/README.md | 11 +
.../MSGraph.Autorest/generate-info.json | 2 +-
.../cmdlets/GetAzAdApplication_Get.cs | 33 +--
.../generated/cmdlets/GetAzAdGroup_Get.cs | 33 +--
.../cmdlets/GetAzAdServicePrincipal_Get.cs | 33 +--
.../generated/cmdlets/GetAzAdUser_Get.cs | 33 +--
.../cmdlets/RemoveAzAdApplication_Delete.cs | 33 +--
.../cmdlets/RemoveAzAdGroup_Delete.cs | 33 +--
.../RemoveAzAdServicePrincipal_Delete.cs | 33 +--
.../cmdlets/RemoveAzAdUser_Delete.cs | 33 +--
...teAzADApplication_UpdateViaJsonFilePath.cs | 33 +--
...dateAzADApplication_UpdateViaJsonString.cs | 33 +--
...DServicePrincipal_UpdateViaJsonFilePath.cs | 33 +--
...zADServicePrincipal_UpdateViaJsonString.cs | 33 +--
.../UpdateAzADUser_UpdateViaJsonFilePath.cs | 33 +--
.../UpdateAzADUser_UpdateViaJsonString.cs | 33 +--
.../UpdateAzAdApplication_UpdateExpanded.cs | 33 +--
...dateAzAdServicePrincipal_UpdateExpanded.cs | 33 +--
.../cmdlets/UpdateAzAdUser_UpdateExpanded.cs | 33 +--
.../internal/Get-AzADApplication.ps1 | 3 +-
.../internal/Get-AzADGroup.ps1 | 3 +-
.../internal/Get-AzADServicePrincipal.ps1 | 3 +-
.../internal/Get-AzADUser.ps1 | 3 +-
.../internal/ProxyCmdletDefinitions.ps1 | 33 ++-
.../internal/Remove-AzADApplication.ps1 | 3 +-
.../internal/Remove-AzADGroup.ps1 | 3 +-
.../internal/Remove-AzADServicePrincipal.ps1 | 3 +-
.../internal/Remove-AzADUser.ps1 | 3 +-
.../internal/Update-AzADApplication.ps1 | 3 +-
.../internal/Update-AzADServicePrincipal.ps1 | 3 +-
.../internal/Update-AzADUser.ps1 | 3 +-
56 files changed, 1067 insertions(+), 645 deletions(-)
create mode 100644 generated/Monitor/DataCollectionRule.Autorest/resources/README.md
diff --git a/generated/Monitor/DataCollectionRule.Autorest/Properties/AssemblyInfo.cs b/generated/Monitor/DataCollectionRule.Autorest/Properties/AssemblyInfo.cs
index fd98e88019b4..299e27b90393 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/Properties/AssemblyInfo.cs
@@ -1,28 +1,26 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// Licensed under the Apache License, Version 2.0 (the "License");
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
+// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-// ----------------------------------------------------------------------------------
+// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+// is regenerated.
using System;
using System.Reflection;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-[assembly: AssemblyTitle("Microsoft Azure Powershell - DataCollectionRule")]
-[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
-[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
-[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
-
-[assembly: ComVisible(false)]
-[assembly: CLSCompliant(false)]
-[assembly: Guid("aeef6feb-73b3-4723-b1f7-a30c6d8cde57")]
-[assembly: AssemblyVersion("5.2.2")]
-[assembly: AssemblyFileVersion("5.2.2")]
+[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
+[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
+[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataCollectionRule")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("5.2.2")]
+[assembly: System.Reflection.AssemblyVersionAttribute("5.2.2")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionEndpoint.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionEndpoint.ps1
index e7b03cc61995..34730910746e 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionEndpoint.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionEndpoint.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Create a data collection endpoint.
+create a data collection endpoint.
.Description
-Create a data collection endpoint.
+create a data collection endpoint.
.Example
New-AzDataCollectionEndpoint -Name myCollectionEndpoint -ResourceGroupName AMCS-TEST -Location eastus -NetworkAclsPublicNetworkAccess Enabled
.Example
@@ -77,11 +77,10 @@ param(
${Description},
[Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [System.String]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
@@ -112,12 +111,11 @@ param(
${Tag},
[Parameter(ParameterSetName='CreateExpanded')]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRule.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRule.ps1
index 4a63566bd3c1..63db7098f67a 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRule.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRule.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Create a data collection rule.
+create a data collection rule.
.Description
-Create a data collection rule.
+create a data collection rule.
.Example
New-AzDataCollectionRule -Name myCollectionRule1 -ResourceGroupName AMCS-TEST -JsonFilePath .\test\jsonfile\ruleTest1.json
# Note: content of .\test\jsonfile\ruleTest1.json
@@ -374,11 +374,10 @@ param(
${DestinationStorageTablesDirect},
[Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [System.String]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Linux", "Windows")]
@@ -402,12 +401,11 @@ param(
${Tag},
[Parameter(ParameterSetName='CreateExpanded')]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRuleAssociation.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRuleAssociation.ps1
index 3370a5fdc21e..ea2cf3eef609 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRuleAssociation.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRuleAssociation.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Create an association.
+create an association.
.Description
-Create an association.
+create an association.
.Example
New-AzDataCollectionRuleAssociation -AssociationName myCollectionRule2-association1 -ResourceUri /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/amcs-test/providers/microsoft.compute/virtualmachines/monitortestvm01 -DataCollectionRuleId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule2
.Example
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/ProxyCmdletDefinitions.ps1
index a3d6ba1eb5f0..0e7353fa31dd 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -660,9 +660,9 @@ end {
<#
.Synopsis
-Create a data collection endpoint.
+create a data collection endpoint.
.Description
-Create a data collection endpoint.
+create a data collection endpoint.
.Example
New-AzDataCollectionEndpoint -Name myCollectionEndpoint -ResourceGroupName AMCS-TEST -Location eastus -NetworkAclsPublicNetworkAccess Enabled
.Example
@@ -721,11 +721,10 @@ param(
${Description},
[Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [System.String]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
@@ -756,12 +755,11 @@ param(
${Tag},
[Parameter(ParameterSetName='CreateExpanded')]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
@@ -916,9 +914,9 @@ end {
<#
.Synopsis
-Create an association.
+create an association.
.Description
-Create an association.
+create an association.
.Example
New-AzDataCollectionRuleAssociation -AssociationName myCollectionRule2-association1 -ResourceUri /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/amcs-test/providers/microsoft.compute/virtualmachines/monitortestvm01 -DataCollectionRuleId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule2
.Example
@@ -1110,9 +1108,9 @@ end {
<#
.Synopsis
-Create a data collection rule.
+create a data collection rule.
.Description
-Create a data collection rule.
+create a data collection rule.
.Example
New-AzDataCollectionRule -Name myCollectionRule1 -ResourceGroupName AMCS-TEST -JsonFilePath .\test\jsonfile\ruleTest1.json
# Note: content of .\test\jsonfile\ruleTest1.json
@@ -1468,11 +1466,10 @@ param(
${DestinationStorageTablesDirect},
[Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [System.String]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Linux", "Windows")]
@@ -1496,12 +1493,11 @@ param(
${Tag},
[Parameter(ParameterSetName='CreateExpanded')]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
@@ -2249,9 +2245,9 @@ end {
<#
.Synopsis
-Update part of a data collection endpoint.
+update a data collection endpoint.
.Description
-Update part of a data collection endpoint.
+update a data collection endpoint.
.Example
Update-AzDataCollectionEndpoint -Name myCollectionEndpoint -ResourceGroupName AMCS-TEST -Tag @{"123"="abc"}
@@ -2308,26 +2304,51 @@ param(
${InputObject},
[Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
[System.String]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
+ # Description of the data collection endpoint.
+ ${Description},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
+ [System.Nullable[System.Boolean]]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
+ [System.String]
+ # The immutable ID of this data collection endpoint resource.
+ # This property is READ-ONLY.
+ ${ImmutableId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Linux", "Windows")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
+ [System.String]
+ # The kind of the resource.
+ ${Kind},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Enabled", "Disabled", "SecuredByPerimeter")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
+ [System.String]
+ # The configuration to set whether network access from public internet to the endpoints are allowed.
+ ${NetworkAclsPublicNetworkAccess},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IResourceForUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
[Parameter()]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter()]
@@ -2469,9 +2490,9 @@ end {
<#
.Synopsis
-Update an association.
+update an association.
.Description
-Update an association.
+update an association.
.Example
Update-AzDataCollectionRuleAssociation -AssociationName configurationAccessEndpoint -DataCollectionEndpointId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint -ResourceUri /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/amcs-test/providers/Microsoft.Compute/virtualMachines/MonitorTestVM01 -Description "monitor test VM endpoint association"
.Example
@@ -2977,11 +2998,10 @@ param(
${DestinationStorageTablesDirect},
[Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [System.String]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
+ [System.Nullable[System.Boolean]]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Linux", "Windows")]
@@ -3005,12 +3025,11 @@ param(
${Tag},
[Parameter()]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter()]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionEndpoint.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionEndpoint.ps1
index 8582dcc21e86..a94aa6b8cf3a 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionEndpoint.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionEndpoint.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Update part of a data collection endpoint.
+update a data collection endpoint.
.Description
-Update part of a data collection endpoint.
+update a data collection endpoint.
.Example
Update-AzDataCollectionEndpoint -Name myCollectionEndpoint -ResourceGroupName AMCS-TEST -Tag @{"123"="abc"}
@@ -75,26 +75,51 @@ param(
${InputObject},
[Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
[System.String]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
+ # Description of the data collection endpoint.
+ ${Description},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IResourceForUpdateTags]))]
+ [System.Nullable[System.Boolean]]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
+ [System.String]
+ # The immutable ID of this data collection endpoint resource.
+ # This property is READ-ONLY.
+ ${ImmutableId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Linux", "Windows")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
+ [System.String]
+ # The kind of the resource.
+ ${Kind},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Enabled", "Disabled", "SecuredByPerimeter")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
+ [System.String]
+ # The configuration to set whether network access from public internet to the endpoints are allowed.
+ ${NetworkAclsPublicNetworkAccess},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
[Parameter()]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter()]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRule.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRule.ps1
index 5d846a41c0ae..e2e53e9bf7e3 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRule.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRule.ps1
@@ -322,11 +322,10 @@ param(
${DestinationStorageTablesDirect},
[Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [System.String]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
+ [System.Nullable[System.Boolean]]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Linux", "Windows")]
@@ -350,12 +349,11 @@ param(
${Tag},
[Parameter()]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter()]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRuleAssociation.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRuleAssociation.ps1
index 8a77793d20a0..99c73ad2935e 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRuleAssociation.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRuleAssociation.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Update an association.
+update an association.
.Description
-Update an association.
+update an association.
.Example
Update-AzDataCollectionRuleAssociation -AssociationName configurationAccessEndpoint -DataCollectionEndpointId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint -ResourceUri /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/amcs-test/providers/Microsoft.Compute/virtualMachines/MonitorTestVM01 -Description "monitor test VM endpoint association"
.Example
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generate-info.json b/generated/Monitor/DataCollectionRule.Autorest/generate-info.json
index bfb4346702df..e19322f69017 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generate-info.json
+++ b/generated/Monitor/DataCollectionRule.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "218a4c91-e486-4310-9dff-3932aa5f440f"
+ "generate_Id": "fb3d51e2-1fa3-446f-bf8e-0817d938121c"
}
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/api/DataCollectionRule.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/api/DataCollectionRule.cs
index 0f6ca69ccfe1..2e97bb29b490 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/api/DataCollectionRule.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/api/DataCollectionRule.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection
public partial class DataCollectionRule
{
- /// Create a data collection endpoint.
+ /// update a data collection endpoint.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection endpoint. The name is case insensitive.
@@ -64,7 +64,7 @@ public partial class DataCollectionRule
}
}
- /// Create a data collection endpoint.
+ /// update a data collection endpoint.
///
/// The payload
/// a delegate that is called when the remote service returns 200 (OK).
@@ -124,7 +124,7 @@ public partial class DataCollectionRule
}
}
- /// Create a data collection endpoint.
+ /// update a data collection endpoint.
///
/// The payload
/// an instance that will receive events.
@@ -181,7 +181,7 @@ public partial class DataCollectionRule
}
}
- /// Create a data collection endpoint.
+ /// update a data collection endpoint.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection endpoint. The name is case insensitive.
@@ -230,7 +230,7 @@ public partial class DataCollectionRule
}
}
- /// Create a data collection endpoint.
+ /// update a data collection endpoint.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection endpoint. The name is case insensitive.
@@ -276,7 +276,7 @@ public partial class DataCollectionRule
}
}
- /// Create a data collection endpoint.
+ /// update a data collection endpoint.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection endpoint. The name is case insensitive.
@@ -1594,7 +1594,7 @@ public partial class DataCollectionRule
}
}
- /// Update part of a data collection endpoint.
+ /// Updates part of a data collection endpoint.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection endpoint. The name is case insensitive.
@@ -1643,7 +1643,7 @@ public partial class DataCollectionRule
}
}
- /// Update part of a data collection endpoint.
+ /// Updates part of a data collection endpoint.
///
/// The payload
/// a delegate that is called when the remote service returns 200 (OK).
@@ -1702,7 +1702,7 @@ public partial class DataCollectionRule
}
}
- /// Update part of a data collection endpoint.
+ /// Updates part of a data collection endpoint.
///
/// The payload
/// an instance that will receive events.
@@ -1759,7 +1759,7 @@ public partial class DataCollectionRule
}
}
- /// Update part of a data collection endpoint.
+ /// Updates part of a data collection endpoint.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection endpoint. The name is case insensitive.
@@ -1807,7 +1807,7 @@ public partial class DataCollectionRule
}
}
- /// Update part of a data collection endpoint.
+ /// Updates part of a data collection endpoint.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection endpoint. The name is case insensitive.
@@ -1853,7 +1853,7 @@ public partial class DataCollectionRule
}
}
- /// Update part of a data collection endpoint.
+ /// Updates part of a data collection endpoint.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection endpoint. The name is case insensitive.
@@ -2039,7 +2039,7 @@ public partial class DataCollectionRule
}
}
- /// Update an association.
+ /// update an association.
/// The identifier of the resource.
/// The name of the association. The name is case insensitive.
/// The payload
@@ -2086,7 +2086,7 @@ public partial class DataCollectionRule
}
}
- /// Update an association.
+ /// update an association.
///
/// The payload
/// a delegate that is called when the remote service returns 200 (OK).
@@ -2143,7 +2143,7 @@ public partial class DataCollectionRule
}
}
- /// Update an association.
+ /// update an association.
///
/// The payload
/// an instance that will receive events.
@@ -2197,7 +2197,7 @@ public partial class DataCollectionRule
}
}
- /// Update an association.
+ /// update an association.
/// The identifier of the resource.
/// The name of the association. The name is case insensitive.
/// Json string supplied to the DataCollectionRuleAssociationsCreate operation
@@ -2243,7 +2243,7 @@ public partial class DataCollectionRule
}
}
- /// Update an association.
+ /// update an association.
/// The identifier of the resource.
/// The name of the association. The name is case insensitive.
/// Json string supplied to the DataCollectionRuleAssociationsCreate operation
@@ -2286,7 +2286,7 @@ public partial class DataCollectionRule
}
}
- /// Update an association.
+ /// update an association.
/// The identifier of the resource.
/// The name of the association. The name is case insensitive.
/// The payload
@@ -3919,7 +3919,7 @@ public partial class DataCollectionRule
}
}
- /// Update a data collection rule.
+ /// update a data collection rule.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection rule. The name is case insensitive.
@@ -3969,7 +3969,7 @@ public partial class DataCollectionRule
}
}
- /// Update a data collection rule.
+ /// update a data collection rule.
///
/// The payload
/// a delegate that is called when the remote service returns 200 (OK).
@@ -4029,7 +4029,7 @@ public partial class DataCollectionRule
}
}
- /// Update a data collection rule.
+ /// update a data collection rule.
///
/// The payload
/// an instance that will receive events.
@@ -4086,7 +4086,7 @@ public partial class DataCollectionRule
}
}
- /// Update a data collection rule.
+ /// update a data collection rule.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection rule. The name is case insensitive.
@@ -4135,7 +4135,7 @@ public partial class DataCollectionRule
}
}
- /// Update a data collection rule.
+ /// update a data collection rule.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection rule. The name is case insensitive.
@@ -4181,7 +4181,7 @@ public partial class DataCollectionRule
}
}
- /// Update a data collection rule.
+ /// update a data collection rule.
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the data collection rule. The name is case insensitive.
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateExpanded.cs
index 342eb607da60..1eef067bd253 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateExpanded.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create a data collection endpoint.
+ /// create a data collection endpoint.
///
/// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionEndpoint_CreateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create a data collection endpoint.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create a data collection endpoint.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", ApiVersion = "2022-06-01")]
public partial class NewAzDataCollectionEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet,
@@ -84,6 +84,10 @@ public partial class NewAzDataCollectionEndpoint_CreateExpanded : global::System
PossibleTypes = new [] { typeof(string) })]
public string Description { get => _body.Description ?? null; set => _body.Description = value; }
+ /// Determines whether to enable a system-assigned identity for the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")]
+ public global::System.Management.Automation.SwitchParameter EnableSystemAssignedIdentity { set => _body.IdentityType = value.IsPresent ? "SystemAssigned": null ; }
+
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -99,21 +103,6 @@ public partial class NewAzDataCollectionEndpoint_CreateExpanded : global::System
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
- ///
- /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
- SerializedName = @"type",
- PossibleTypes = new [] { typeof(string) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
- public string IdentityType { get => _body.IdentityType ?? null; set => _body.IdentityType = value; }
-
///
/// The immutable ID of this data collection endpoint resource. This property is READ-ONLY.
///
@@ -257,21 +246,12 @@ public partial class NewAzDataCollectionEndpoint_CreateExpanded : global::System
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; }
///
- /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM
- /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- /// The dictionary values can be empty objects ({}) in requests.
+ /// The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in
+ /// the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ExportAs(typeof(global::System.Collections.Hashtable))]
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
- SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("UserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="UserAssignedIdentity's type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities UserAssignedIdentity { get => _body.IdentityUserAssignedIdentity ?? null /* object */; set => _body.IdentityUserAssignedIdentity = value; }
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'")]
+ [global::System.Management.Automation.AllowEmptyCollection]
+ public string[] UserAssignedIdentity { get; set; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -442,6 +422,31 @@ public NewAzDataCollectionEndpoint_CreateExpanded()
}
+ private void PreProcessManagedIdentityParameters()
+ {
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ // calculate UserAssignedIdentity
+ _body.IdentityUserAssignedIdentity.Clear();
+ foreach( var id in this.UserAssignedIdentity )
+ {
+ _body.IdentityUserAssignedIdentity.Add(id, new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.UserAssignedIdentity());
+ }
+ }
+ // calculate IdentityType
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ if ("SystemAssigned".Equals(_body.IdentityType, StringComparison.InvariantCultureIgnoreCase))
+ {
+ _body.IdentityType = "SystemAssigned,UserAssigned";
+ }
+ else
+ {
+ _body.IdentityType = "UserAssigned";
+ }
+ }
+ }
+
/// Performs execution of the command.
protected override void ProcessRecord()
{
@@ -502,6 +507,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ this.PreProcessManagedIdentityParameters();
await this.Client.DataCollectionEndpointsCreate(SubscriptionId, ResourceGroupName, Name, _body, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateViaJsonFilePath.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateViaJsonFilePath.cs
index 57c730c13128..2f60ae6f46f6 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateViaJsonFilePath.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateViaJsonFilePath.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create a data collection endpoint.
+ /// create a data collection endpoint.
///
/// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionEndpoint_CreateViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create a data collection endpoint.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create a data collection endpoint.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", ApiVersion = "2022-06-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.NotSuggestDefaultParameterSet]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateViaJsonString.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateViaJsonString.cs
index 42b858b4002f..116de3a52033 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateViaJsonString.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionEndpoint_CreateViaJsonString.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create a data collection endpoint.
+ /// create a data collection endpoint.
///
/// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionEndpoint_CreateViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create a data collection endpoint.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create a data collection endpoint.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", ApiVersion = "2022-06-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.NotSuggestDefaultParameterSet]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateExpanded.cs
index 05125ae2de68..ef5203b3c216 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateExpanded.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create an association.
+ /// create an association.
///
/// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionRuleAssociation_CreateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleAssociationProxyOnlyResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create an association.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create an association.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}", ApiVersion = "2022-06-01")]
public partial class NewAzDataCollectionRuleAssociation_CreateExpanded : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateViaJsonFilePath.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateViaJsonFilePath.cs
index 058581647e15..6b88f829e355 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateViaJsonFilePath.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateViaJsonFilePath.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create an association.
+ /// create an association.
///
/// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionRuleAssociation_CreateViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleAssociationProxyOnlyResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create an association.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create an association.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}", ApiVersion = "2022-06-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.NotSuggestDefaultParameterSet]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateViaJsonString.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateViaJsonString.cs
index 3b1356afe909..201cf5661feb 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateViaJsonString.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRuleAssociation_CreateViaJsonString.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create an association.
+ /// create an association.
///
/// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionRuleAssociation_CreateViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleAssociationProxyOnlyResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create an association.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create an association.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}", ApiVersion = "2022-06-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.NotSuggestDefaultParameterSet]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateExpanded.cs
index d52c96b2c586..053d5ec98ce0 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateExpanded.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create a data collection rule.
+ /// create a data collection rule.
///
/// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionRule_CreateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create a data collection rule.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create a data collection rule.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}", ApiVersion = "2022-06-01")]
public partial class NewAzDataCollectionRule_CreateExpanded : global::System.Management.Automation.PSCmdlet,
@@ -353,6 +353,10 @@ public partial class NewAzDataCollectionRule_CreateExpanded : global::System.Man
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageTableDestination) })]
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageTableDestination[] DestinationStorageTablesDirect { get => _body.DestinationStorageTablesDirect?.ToArray() ?? null /* fixedArrayOf */; set => _body.DestinationStorageTablesDirect = (value != null ? new System.Collections.Generic.List(value) : null); }
+ /// Determines whether to enable a system-assigned identity for the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")]
+ public global::System.Management.Automation.SwitchParameter EnableSystemAssignedIdentity { set => _body.IdentityType = value.IsPresent ? "SystemAssigned": null ; }
+
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -368,21 +372,6 @@ public partial class NewAzDataCollectionRule_CreateExpanded : global::System.Man
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
- ///
- /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
- SerializedName = @"type",
- PossibleTypes = new [] { typeof(string) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
- public string IdentityType { get => _body.IdentityType ?? null; set => _body.IdentityType = value; }
-
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -511,21 +500,12 @@ public partial class NewAzDataCollectionRule_CreateExpanded : global::System.Man
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleResourceTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; }
///
- /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM
- /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- /// The dictionary values can be empty objects ({}) in requests.
+ /// The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in
+ /// the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ExportAs(typeof(global::System.Collections.Hashtable))]
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
- SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("UserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="UserAssignedIdentity's type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities UserAssignedIdentity { get => _body.IdentityUserAssignedIdentity ?? null /* object */; set => _body.IdentityUserAssignedIdentity = value; }
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'")]
+ [global::System.Management.Automation.AllowEmptyCollection]
+ public string[] UserAssignedIdentity { get; set; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -696,6 +676,31 @@ public NewAzDataCollectionRule_CreateExpanded()
}
+ private void PreProcessManagedIdentityParameters()
+ {
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ // calculate UserAssignedIdentity
+ _body.IdentityUserAssignedIdentity.Clear();
+ foreach( var id in this.UserAssignedIdentity )
+ {
+ _body.IdentityUserAssignedIdentity.Add(id, new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.UserAssignedIdentity());
+ }
+ }
+ // calculate IdentityType
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ if ("SystemAssigned".Equals(_body.IdentityType, StringComparison.InvariantCultureIgnoreCase))
+ {
+ _body.IdentityType = "SystemAssigned,UserAssigned";
+ }
+ else
+ {
+ _body.IdentityType = "UserAssigned";
+ }
+ }
+ }
+
/// Performs execution of the command.
protected override void ProcessRecord()
{
@@ -756,6 +761,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ this.PreProcessManagedIdentityParameters();
await this.Client.DataCollectionRulesCreate(SubscriptionId, ResourceGroupName, Name, _body, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateViaJsonFilePath.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateViaJsonFilePath.cs
index c37a9a8b5cd7..385bf59b0f8d 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateViaJsonFilePath.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateViaJsonFilePath.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create a data collection rule.
+ /// create a data collection rule.
///
/// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionRule_CreateViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create a data collection rule.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create a data collection rule.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}", ApiVersion = "2022-06-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.NotSuggestDefaultParameterSet]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateViaJsonString.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateViaJsonString.cs
index b07c4bfcfa98..d5dbb8a5dda8 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateViaJsonString.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/NewAzDataCollectionRule_CreateViaJsonString.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Create a data collection rule.
+ /// create a data collection rule.
///
/// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataCollectionRule_CreateViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Create a data collection rule.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"create a data collection rule.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}", ApiVersion = "2022-06-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.NotSuggestDefaultParameterSet]
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionEndpoint_UpdateExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionEndpoint_UpdateExpanded.cs
index 60c326bc6c7c..731eae225a61 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionEndpoint_UpdateExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionEndpoint_UpdateExpanded.cs
@@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Update part of a data collection endpoint.
+ /// update a data collection endpoint.
///
- /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
+ /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
+ /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataCollectionEndpoint_UpdateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Update part of a data collection endpoint.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"update a data collection endpoint.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", ApiVersion = "2022-06-01")]
public partial class UpdateAzDataCollectionEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IContext
@@ -32,8 +32,8 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateExpanded : global::Sys
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Definition of ARM tracked top level resource properties for update operation.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IResourceForUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ResourceForUpdate();
+ /// Definition of ARM tracked top level resource.
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource _body = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.DataCollectionEndpointResource();
///
/// The for this operation.
@@ -73,6 +73,21 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateExpanded : global::Sys
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
+ /// Description of the data collection endpoint.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Description of the data collection endpoint.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Description of the data collection endpoint.",
+ SerializedName = @"description",
+ PossibleTypes = new [] { typeof(string) })]
+ public string Description { get => _body.Description ?? null; set => _body.Description = value; }
+
+ /// Determines whether to enable a system-assigned identity for the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")]
+ public System.Boolean? EnableSystemAssignedIdentity { get; set; }
+
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -89,23 +104,33 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateExpanded : global::Sys
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
///
- /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
+ /// The immutable ID of this data collection endpoint resource. This property is READ-ONLY.
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The immutable ID of this data collection endpoint resource. This property is READ-ONLY.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
Required = false,
ReadOnly = false,
- Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
- SerializedName = @"type",
+ Description = @"The immutable ID of this data collection endpoint resource. This property is READ-ONLY.",
+ SerializedName = @"immutableId",
PossibleTypes = new [] { typeof(string) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
- public string IdentityType { get => _body.IdentityType ?? null; set => _body.IdentityType = value; }
+ public string ImmutableId { get => _body.ImmutableId ?? null; set => _body.ImmutableId = value; }
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
+ /// The kind of the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The kind of the resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"The kind of the resource.",
+ SerializedName = @"kind",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Linux", "Windows")]
+ public string Kind { get => _body.Kind ?? null; set => _body.Kind = value; }
+
///
/// cancellation delegate. Stops the cmdlet when called.
///
@@ -129,6 +154,20 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateExpanded : global::Sys
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Path)]
public string Name { get => this._name; set => this._name = value; }
+ ///
+ /// The configuration to set whether network access from public internet to the endpoints are allowed.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The configuration to set whether network access from public internet to the endpoints are allowed.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"The configuration to set whether network access from public internet to the endpoints are allowed.",
+ SerializedName = @"publicNetworkAccess",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Enabled", "Disabled", "SecuredByPerimeter")]
+ public string NetworkAclsPublicNetworkAccess { get => _body.NetworkAclsPublicNetworkAccess ?? null; set => _body.NetworkAclsPublicNetworkAccess = value; }
+
///
/// The instance of the that the remote call will use.
///
@@ -192,25 +231,28 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateExpanded : global::Sys
ReadOnly = false,
Description = @"Resource tags.",
SerializedName = @"tags",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IResourceForUpdateTags) })]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IResourceForUpdateTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags) })]
+ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; }
///
- /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM
- /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- /// The dictionary values can be empty objects ({}) in requests.
+ /// The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in
+ /// the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ExportAs(typeof(global::System.Collections.Hashtable))]
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
- SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("UserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="UserAssignedIdentity's type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities UserAssignedIdentity { get => _body.IdentityUserAssignedIdentity ?? null /* object */; set => _body.IdentityUserAssignedIdentity = value; }
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'")]
+ [global::System.Management.Automation.AllowEmptyCollection]
+ public string[] UserAssignedIdentity { get; set; }
+
+ ///
+ /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
+ /// happens on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource
+ /// from the remote call
+ /// /// Determines if the rest of the onCreated method should be processed, or if the method should
+ /// return immediately (set to true to skip further processing )
+
+ partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
@@ -361,6 +403,44 @@ protected override void EndProcessing()
}
}
+ private void PreProcessManagedIdentityParametersWithGetResult()
+ {
+ bool supportsSystemAssignedIdentity = (true == this.EnableSystemAssignedIdentity || null == this.EnableSystemAssignedIdentity && true == _body?.IdentityType?.Contains("SystemAssigned"));
+ bool supportsUserAssignedIdentity = false;
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ // calculate UserAssignedIdentity
+ _body.IdentityUserAssignedIdentity.Clear();
+ foreach( var id in this.UserAssignedIdentity )
+ {
+ _body.IdentityUserAssignedIdentity.Add(id, new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.UserAssignedIdentity());
+ }
+ }
+ supportsUserAssignedIdentity = true == this.MyInvocation?.BoundParameters?.ContainsKey("UserAssignedIdentity") && this.UserAssignedIdentity?.Length > 0 ||
+ true != this.MyInvocation?.BoundParameters?.ContainsKey("UserAssignedIdentity") && true == _body.IdentityType?.Contains("UserAssigned");
+ if (!supportsUserAssignedIdentity)
+ {
+ _body.IdentityUserAssignedIdentity = null;
+ }
+ // calculate IdentityType
+ if ((supportsUserAssignedIdentity && supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "SystemAssigned,UserAssigned";
+ }
+ else if ((supportsUserAssignedIdentity && !supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "UserAssigned";
+ }
+ else if ((!supportsUserAssignedIdentity && supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "SystemAssigned";
+ }
+ else
+ {
+ _body.IdentityType = "None";
+ }
+ }
+
/// Performs execution of the command.
protected override void ProcessRecord()
{
@@ -369,7 +449,7 @@ protected override void ProcessRecord()
try
{
// work
- if (ShouldProcess($"Call remote 'DataCollectionEndpointsUpdate' operation"))
+ if (ShouldProcess($"Call remote 'DataCollectionEndpointsCreate' operation"))
{
using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token) )
{
@@ -421,7 +501,10 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DataCollectionEndpointsUpdate(SubscriptionId, ResourceGroupName, Name, _body, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
+ _body = await this.Client.DataCollectionEndpointsGetWithResult(SubscriptionId, ResourceGroupName, Name, this, Pipeline);
+ this.PreProcessManagedIdentityParametersWithGetResult();
+ this.Update_body();
+ await this.Client.DataCollectionEndpointsCreate(SubscriptionId, ResourceGroupName, Name, _body, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.UndeclaredResponseException urexception)
@@ -453,6 +536,30 @@ public UpdateAzDataCollectionEndpoint_UpdateExpanded()
}
+ private void Update_body()
+ {
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag")))
+ {
+ this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags)(this.MyInvocation?.BoundParameters["Tag"]);
+ }
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Kind")))
+ {
+ this.Kind = (string)(this.MyInvocation?.BoundParameters["Kind"]);
+ }
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Description")))
+ {
+ this.Description = (string)(this.MyInvocation?.BoundParameters["Description"]);
+ }
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ImmutableId")))
+ {
+ this.ImmutableId = (string)(this.MyInvocation?.BoundParameters["ImmutableId"]);
+ }
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("NetworkAclsPublicNetworkAccess")))
+ {
+ this.NetworkAclsPublicNetworkAccess = (string)(this.MyInvocation?.BoundParameters["NetworkAclsPublicNetworkAccess"]);
+ }
+ }
+
///
new protected void WriteObject(object sendToPipeline)
{
@@ -468,6 +575,48 @@ public UpdateAzDataCollectionEndpoint_UpdateExpanded()
base.WriteObject(sendToPipeline, enumerateCollection);
}
+ /// a delegate that is called when the remote service returns 201 (Created).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource
+ /// from the remote call
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnCreated(responseMessage, response, ref _returnNow);
+ // if overrideOnCreated has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onCreated - response for 201 / application/json
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource
+ var result = (await response);
+ if (null != result)
+ {
+ if (0 == _responseSize)
+ {
+ _firstResponse = result;
+ _responseSize = 1;
+ }
+ else
+ {
+ if (1 ==_responseSize)
+ {
+ // Flush buffer
+ WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
+ }
+ WriteObject(result.AddMultipleTypeNameIntoPSObject());
+ _responseSize = 2;
+ }
+ }
+ }
+ }
+
///
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded.cs
index f721e17e17b6..e419b6ef7cf9 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded.cs
@@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Update part of a data collection endpoint.
+ /// update a data collection endpoint.
///
- /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
+ /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
+ /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataCollectionEndpoint_UpdateViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Update part of a data collection endpoint.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"update a data collection endpoint.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", ApiVersion = "2022-06-01")]
public partial class UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IContext
@@ -32,8 +32,8 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded :
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Definition of ARM tracked top level resource properties for update operation.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IResourceForUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ResourceForUpdate();
+ /// Definition of ARM tracked top level resource.
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource _body = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.DataCollectionEndpointResource();
///
/// The for this operation.
@@ -73,6 +73,21 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded :
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
+ /// Description of the data collection endpoint.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Description of the data collection endpoint.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Description of the data collection endpoint.",
+ SerializedName = @"description",
+ PossibleTypes = new [] { typeof(string) })]
+ public string Description { get => _body.Description ?? null; set => _body.Description = value; }
+
+ /// Determines whether to enable a system-assigned identity for the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")]
+ public System.Boolean? EnableSystemAssignedIdentity { get; set; }
+
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -89,19 +104,17 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded :
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
///
- /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
+ /// The immutable ID of this data collection endpoint resource. This property is READ-ONLY.
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The immutable ID of this data collection endpoint resource. This property is READ-ONLY.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
Required = false,
ReadOnly = false,
- Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
- SerializedName = @"type",
+ Description = @"The immutable ID of this data collection endpoint resource. This property is READ-ONLY.",
+ SerializedName = @"immutableId",
PossibleTypes = new [] { typeof(string) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
- public string IdentityType { get => _body.IdentityType ?? null; set => _body.IdentityType = value; }
+ public string ImmutableId { get => _body.ImmutableId ?? null; set => _body.ImmutableId = value; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity _inputObject;
@@ -114,6 +127,18 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded :
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
+ /// The kind of the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The kind of the resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"The kind of the resource.",
+ SerializedName = @"kind",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Linux", "Windows")]
+ public string Kind { get => _body.Kind ?? null; set => _body.Kind = value; }
+
///
/// cancellation delegate. Stops the cmdlet when called.
///
@@ -122,6 +147,20 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded :
/// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
+ ///
+ /// The configuration to set whether network access from public internet to the endpoints are allowed.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The configuration to set whether network access from public internet to the endpoints are allowed.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"The configuration to set whether network access from public internet to the endpoints are allowed.",
+ SerializedName = @"publicNetworkAccess",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("Enabled", "Disabled", "SecuredByPerimeter")]
+ public string NetworkAclsPublicNetworkAccess { get => _body.NetworkAclsPublicNetworkAccess ?? null; set => _body.NetworkAclsPublicNetworkAccess = value; }
+
///
/// The instance of the that the remote call will use.
///
@@ -152,25 +191,28 @@ public partial class UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded :
ReadOnly = false,
Description = @"Resource tags.",
SerializedName = @"tags",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IResourceForUpdateTags) })]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IResourceForUpdateTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags) })]
+ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; }
///
- /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM
- /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- /// The dictionary values can be empty objects ({}) in requests.
+ /// The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in
+ /// the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ExportAs(typeof(global::System.Collections.Hashtable))]
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
- SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("UserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="UserAssignedIdentity's type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities UserAssignedIdentity { get => _body.IdentityUserAssignedIdentity ?? null /* object */; set => _body.IdentityUserAssignedIdentity = value; }
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'")]
+ [global::System.Management.Automation.AllowEmptyCollection]
+ public string[] UserAssignedIdentity { get; set; }
+
+ ///
+ /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
+ /// happens on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource
+ /// from the remote call
+ /// /// Determines if the rest of the onCreated method should be processed, or if the method should
+ /// return immediately (set to true to skip further processing )
+
+ partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
@@ -321,6 +363,44 @@ protected override void EndProcessing()
}
}
+ private void PreProcessManagedIdentityParametersWithGetResult()
+ {
+ bool supportsSystemAssignedIdentity = (true == this.EnableSystemAssignedIdentity || null == this.EnableSystemAssignedIdentity && true == _body?.IdentityType?.Contains("SystemAssigned"));
+ bool supportsUserAssignedIdentity = false;
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ // calculate UserAssignedIdentity
+ _body.IdentityUserAssignedIdentity.Clear();
+ foreach( var id in this.UserAssignedIdentity )
+ {
+ _body.IdentityUserAssignedIdentity.Add(id, new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.UserAssignedIdentity());
+ }
+ }
+ supportsUserAssignedIdentity = true == this.MyInvocation?.BoundParameters?.ContainsKey("UserAssignedIdentity") && this.UserAssignedIdentity?.Length > 0 ||
+ true != this.MyInvocation?.BoundParameters?.ContainsKey("UserAssignedIdentity") && true == _body.IdentityType?.Contains("UserAssigned");
+ if (!supportsUserAssignedIdentity)
+ {
+ _body.IdentityUserAssignedIdentity = null;
+ }
+ // calculate IdentityType
+ if ((supportsUserAssignedIdentity && supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "SystemAssigned,UserAssigned";
+ }
+ else if ((supportsUserAssignedIdentity && !supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "UserAssigned";
+ }
+ else if ((!supportsUserAssignedIdentity && supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "SystemAssigned";
+ }
+ else
+ {
+ _body.IdentityType = "None";
+ }
+ }
+
/// Performs execution of the command.
protected override void ProcessRecord()
{
@@ -329,7 +409,7 @@ protected override void ProcessRecord()
try
{
// work
- if (ShouldProcess($"Call remote 'DataCollectionEndpointsUpdate' operation"))
+ if (ShouldProcess($"Call remote 'DataCollectionEndpointsCreate' operation"))
{
using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token) )
{
@@ -383,7 +463,10 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.DataCollectionEndpointsUpdateViaIdentity(InputObject.Id, _body, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
+ _body = await this.Client.DataCollectionEndpointsGetViaIdentityWithResult(InputObject.Id, this, Pipeline);
+ this.PreProcessManagedIdentityParametersWithGetResult();
+ this.Update_body();
+ await this.Client.DataCollectionEndpointsCreateViaIdentity(InputObject.Id, _body, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
}
else
{
@@ -400,7 +483,10 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DataCollectionEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.DataCollectionEndpointsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DataCollectionEndpointName ?? null, _body, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
+ _body = await this.Client.DataCollectionEndpointsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DataCollectionEndpointName ?? null, this, Pipeline);
+ this.PreProcessManagedIdentityParametersWithGetResult();
+ this.Update_body();
+ await this.Client.DataCollectionEndpointsCreate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DataCollectionEndpointName ?? null, _body, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -433,6 +519,30 @@ public UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded()
}
+ private void Update_body()
+ {
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag")))
+ {
+ this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResourceTags)(this.MyInvocation?.BoundParameters["Tag"]);
+ }
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Kind")))
+ {
+ this.Kind = (string)(this.MyInvocation?.BoundParameters["Kind"]);
+ }
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Description")))
+ {
+ this.Description = (string)(this.MyInvocation?.BoundParameters["Description"]);
+ }
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ImmutableId")))
+ {
+ this.ImmutableId = (string)(this.MyInvocation?.BoundParameters["ImmutableId"]);
+ }
+ if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("NetworkAclsPublicNetworkAccess")))
+ {
+ this.NetworkAclsPublicNetworkAccess = (string)(this.MyInvocation?.BoundParameters["NetworkAclsPublicNetworkAccess"]);
+ }
+ }
+
///
new protected void WriteObject(object sendToPipeline)
{
@@ -448,6 +558,48 @@ public UpdateAzDataCollectionEndpoint_UpdateViaIdentityExpanded()
base.WriteObject(sendToPipeline, enumerateCollection);
}
+ /// a delegate that is called when the remote service returns 201 (Created).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource
+ /// from the remote call
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnCreated(responseMessage, response, ref _returnNow);
+ // if overrideOnCreated has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onCreated - response for 201 / application/json
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionEndpointResource
+ var result = (await response);
+ if (null != result)
+ {
+ if (0 == _responseSize)
+ {
+ _firstResponse = result;
+ _responseSize = 1;
+ }
+ else
+ {
+ if (1 ==_responseSize)
+ {
+ // Flush buffer
+ WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
+ }
+ WriteObject(result.AddMultipleTypeNameIntoPSObject());
+ _responseSize = 2;
+ }
+ }
+ }
+ }
+
///
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRuleAssociation_UpdateExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRuleAssociation_UpdateExpanded.cs
index f4d8e75946a7..3788e5f82bec 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRuleAssociation_UpdateExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRuleAssociation_UpdateExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Update an association.
+ /// update an association.
///
/// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}"
/// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataCollectionRuleAssociation_UpdateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleAssociationProxyOnlyResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Update an association.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"update an association.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
public partial class UpdateAzDataCollectionRuleAssociation_UpdateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener,
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRuleAssociation_UpdateViaIdentityExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRuleAssociation_UpdateViaIdentityExpanded.cs
index b732c8c9c2c1..fff5d28682e3 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRuleAssociation_UpdateViaIdentityExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRuleAssociation_UpdateViaIdentityExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Cmdlets;
using System;
- /// Update an association.
+ /// update an association.
///
/// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}"
/// [OpenAPI] Create=>PUT:"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataCollectionRuleAssociation_UpdateViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleAssociationProxyOnlyResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"Update an association.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Description(@"update an association.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Generated]
public partial class UpdateAzDataCollectionRuleAssociation_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener,
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRule_UpdateExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRule_UpdateExpanded.cs
index 5489eaafa55e..fe3a8eaa7750 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRule_UpdateExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRule_UpdateExpanded.cs
@@ -353,6 +353,10 @@ public partial class UpdateAzDataCollectionRule_UpdateExpanded : global::System.
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageTableDestination) })]
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageTableDestination[] DestinationStorageTablesDirect { get => _body.DestinationStorageTablesDirect?.ToArray() ?? null /* fixedArrayOf */; set => _body.DestinationStorageTablesDirect = (value != null ? new System.Collections.Generic.List(value) : null); }
+ /// Determines whether to enable a system-assigned identity for the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")]
+ public System.Boolean? EnableSystemAssignedIdentity { get; set; }
+
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -368,21 +372,6 @@ public partial class UpdateAzDataCollectionRule_UpdateExpanded : global::System.
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
- ///
- /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
- SerializedName = @"type",
- PossibleTypes = new [] { typeof(string) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
- public string IdentityType { get => _body.IdentityType ?? null; set => _body.IdentityType = value; }
-
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -500,21 +489,12 @@ public partial class UpdateAzDataCollectionRule_UpdateExpanded : global::System.
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleResourceTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; }
///
- /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM
- /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- /// The dictionary values can be empty objects ({}) in requests.
+ /// The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in
+ /// the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ExportAs(typeof(global::System.Collections.Hashtable))]
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
- SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("UserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="UserAssignedIdentity's type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities UserAssignedIdentity { get => _body.IdentityUserAssignedIdentity ?? null /* object */; set => _body.IdentityUserAssignedIdentity = value; }
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'")]
+ [global::System.Management.Automation.AllowEmptyCollection]
+ public string[] UserAssignedIdentity { get; set; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -677,6 +657,44 @@ protected override void EndProcessing()
}
}
+ private void PreProcessManagedIdentityParametersWithGetResult()
+ {
+ bool supportsSystemAssignedIdentity = (true == this.EnableSystemAssignedIdentity || null == this.EnableSystemAssignedIdentity && true == _body?.IdentityType?.Contains("SystemAssigned"));
+ bool supportsUserAssignedIdentity = false;
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ // calculate UserAssignedIdentity
+ _body.IdentityUserAssignedIdentity.Clear();
+ foreach( var id in this.UserAssignedIdentity )
+ {
+ _body.IdentityUserAssignedIdentity.Add(id, new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.UserAssignedIdentity());
+ }
+ }
+ supportsUserAssignedIdentity = true == this.MyInvocation?.BoundParameters?.ContainsKey("UserAssignedIdentity") && this.UserAssignedIdentity?.Length > 0 ||
+ true != this.MyInvocation?.BoundParameters?.ContainsKey("UserAssignedIdentity") && true == _body.IdentityType?.Contains("UserAssigned");
+ if (!supportsUserAssignedIdentity)
+ {
+ _body.IdentityUserAssignedIdentity = null;
+ }
+ // calculate IdentityType
+ if ((supportsUserAssignedIdentity && supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "SystemAssigned,UserAssigned";
+ }
+ else if ((supportsUserAssignedIdentity && !supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "UserAssigned";
+ }
+ else if ((!supportsUserAssignedIdentity && supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "SystemAssigned";
+ }
+ else
+ {
+ _body.IdentityType = "None";
+ }
+ }
+
/// Performs execution of the command.
protected override void ProcessRecord()
{
@@ -738,6 +756,7 @@ protected override void ProcessRecord()
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
_body = await this.Client.DataCollectionRulesGetWithResult(SubscriptionId, ResourceGroupName, Name, this, Pipeline);
+ this.PreProcessManagedIdentityParametersWithGetResult();
this.Update_body();
await this.Client.DataCollectionRulesCreate(SubscriptionId, ResourceGroupName, Name, _body, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
await ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
@@ -797,14 +816,6 @@ private void Update_body()
{
this.DataFlow = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataFlow[])(this.MyInvocation?.BoundParameters["DataFlow"]);
}
- if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("IdentityType")))
- {
- this.IdentityType = (string)(this.MyInvocation?.BoundParameters["IdentityType"]);
- }
- if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("UserAssignedIdentity")))
- {
- this.UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities)(this.MyInvocation?.BoundParameters["UserAssignedIdentity"]);
- }
if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DataSourcePerformanceCounter")))
{
this.DataSourcePerformanceCounter = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPerfCounterDataSource[])(this.MyInvocation?.BoundParameters["DataSourcePerformanceCounter"]);
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRule_UpdateViaIdentityExpanded.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRule_UpdateViaIdentityExpanded.cs
index ae52280b0b9e..1968248b39b7 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRule_UpdateViaIdentityExpanded.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/UpdateAzDataCollectionRule_UpdateViaIdentityExpanded.cs
@@ -353,6 +353,10 @@ public partial class UpdateAzDataCollectionRule_UpdateViaIdentityExpanded : glob
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageTableDestination) })]
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageTableDestination[] DestinationStorageTablesDirect { get => _body.DestinationStorageTablesDirect?.ToArray() ?? null /* fixedArrayOf */; set => _body.DestinationStorageTablesDirect = (value != null ? new System.Collections.Generic.List(value) : null); }
+ /// Determines whether to enable a system-assigned identity for the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")]
+ public System.Boolean? EnableSystemAssignedIdentity { get; set; }
+
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -368,21 +372,6 @@ public partial class UpdateAzDataCollectionRule_UpdateViaIdentityExpanded : glob
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
- ///
- /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
- SerializedName = @"type",
- PossibleTypes = new [] { typeof(string) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
- public string IdentityType { get => _body.IdentityType ?? null; set => _body.IdentityType = value; }
-
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity _inputObject;
@@ -460,21 +449,12 @@ public partial class UpdateAzDataCollectionRule_UpdateViaIdentityExpanded : glob
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleResourceTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; }
///
- /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM
- /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- /// The dictionary values can be empty objects ({}) in requests.
+ /// The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in
+ /// the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
///
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ExportAs(typeof(global::System.Collections.Hashtable))]
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.ParameterCategory.Body)]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
- SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities) })]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.ParameterBreakingChange("UserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="UserAssignedIdentity's type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities UserAssignedIdentity { get => _body.IdentityUserAssignedIdentity ?? null /* object */; set => _body.IdentityUserAssignedIdentity = value; }
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'")]
+ [global::System.Management.Automation.AllowEmptyCollection]
+ public string[] UserAssignedIdentity { get; set; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -637,6 +617,44 @@ protected override void EndProcessing()
}
}
+ private void PreProcessManagedIdentityParametersWithGetResult()
+ {
+ bool supportsSystemAssignedIdentity = (true == this.EnableSystemAssignedIdentity || null == this.EnableSystemAssignedIdentity && true == _body?.IdentityType?.Contains("SystemAssigned"));
+ bool supportsUserAssignedIdentity = false;
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ // calculate UserAssignedIdentity
+ _body.IdentityUserAssignedIdentity.Clear();
+ foreach( var id in this.UserAssignedIdentity )
+ {
+ _body.IdentityUserAssignedIdentity.Add(id, new Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.UserAssignedIdentity());
+ }
+ }
+ supportsUserAssignedIdentity = true == this.MyInvocation?.BoundParameters?.ContainsKey("UserAssignedIdentity") && this.UserAssignedIdentity?.Length > 0 ||
+ true != this.MyInvocation?.BoundParameters?.ContainsKey("UserAssignedIdentity") && true == _body.IdentityType?.Contains("UserAssigned");
+ if (!supportsUserAssignedIdentity)
+ {
+ _body.IdentityUserAssignedIdentity = null;
+ }
+ // calculate IdentityType
+ if ((supportsUserAssignedIdentity && supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "SystemAssigned,UserAssigned";
+ }
+ else if ((supportsUserAssignedIdentity && !supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "UserAssigned";
+ }
+ else if ((!supportsUserAssignedIdentity && supportsSystemAssignedIdentity))
+ {
+ _body.IdentityType = "SystemAssigned";
+ }
+ else
+ {
+ _body.IdentityType = "None";
+ }
+ }
+
/// Performs execution of the command.
protected override void ProcessRecord()
{
@@ -700,6 +718,7 @@ protected override void ProcessRecord()
if (InputObject?.Id != null)
{
_body = await this.Client.DataCollectionRulesGetViaIdentityWithResult(InputObject.Id, this, Pipeline);
+ this.PreProcessManagedIdentityParametersWithGetResult();
this.Update_body();
await this.Client.DataCollectionRulesCreateViaIdentity(InputObject.Id, _body, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
}
@@ -719,6 +738,7 @@ protected override void ProcessRecord()
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DataCollectionRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
_body = await this.Client.DataCollectionRulesGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DataCollectionRuleName ?? null, this, Pipeline);
+ this.PreProcessManagedIdentityParametersWithGetResult();
this.Update_body();
await this.Client.DataCollectionRulesCreate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DataCollectionRuleName ?? null, _body, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Runtime.SerializationMode.IncludeUpdate);
}
@@ -779,14 +799,6 @@ private void Update_body()
{
this.DataFlow = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataFlow[])(this.MyInvocation?.BoundParameters["DataFlow"]);
}
- if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("IdentityType")))
- {
- this.IdentityType = (string)(this.MyInvocation?.BoundParameters["IdentityType"]);
- }
- if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("UserAssignedIdentity")))
- {
- this.UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IUserAssignedIdentities)(this.MyInvocation?.BoundParameters["UserAssignedIdentity"]);
- }
if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DataSourcePerformanceCounter")))
{
this.DataSourcePerformanceCounter = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPerfCounterDataSource[])(this.MyInvocation?.BoundParameters["DataSourcePerformanceCounter"]);
diff --git a/generated/Monitor/DataCollectionRule.Autorest/resources/README.md b/generated/Monitor/DataCollectionRule.Autorest/resources/README.md
new file mode 100644
index 000000000000..937f07f8fec2
--- /dev/null
+++ b/generated/Monitor/DataCollectionRule.Autorest/resources/README.md
@@ -0,0 +1,11 @@
+# Resources
+This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder.
+
+## Info
+- Modifiable: yes
+- Generated: no
+- Committed: yes
+- Packaged: no
+
+## Purpose
+Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact.
\ No newline at end of file
diff --git a/generated/Resources/MSGraph.Autorest/generate-info.json b/generated/Resources/MSGraph.Autorest/generate-info.json
index 6ef6ae36062c..2cbd710e15a5 100644
--- a/generated/Resources/MSGraph.Autorest/generate-info.json
+++ b/generated/Resources/MSGraph.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "b9ad0464-6731-4e5e-a760-0d118f5e6db2"
+ "generate_Id": "64268d0d-979c-44ef-91e9-96b967985179"
}
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs
index 1f28b58b84ff..b68e680a58de 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs
@@ -53,20 +53,6 @@ public partial class GetAzADApplication_Get : global::System.Management.Automati
///
private int _responseSize = 0;
- /// Backing field for property.
- private string _applicationId;
-
- /// key: id of application
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of application",
- SerializedName = @"application-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ApplicationId { get => this._applicationId; set => this._applicationId = value; }
-
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
@@ -134,6 +120,21 @@ public partial class GetAzADApplication_Get : global::System.Management.Automati
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of application
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of application",
+ SerializedName = @"application-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ApplicationId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -395,12 +396,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ApplicationsApplicationGetApplication(ApplicationId, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline);
+ await this.Client.ApplicationsApplicationGetApplication(Id, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs
index 2d6fd7705ae6..7f9c3ee31d42 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs
@@ -108,20 +108,6 @@ public partial class GetAzADGroup_Get : global::System.Management.Automation.PSC
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
- /// Backing field for property.
- private string _groupId;
-
- /// key: id of group
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of group",
- SerializedName = @"group-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string GroupId { get => this._groupId; set => this._groupId = value; }
-
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
[global::System.Management.Automation.ValidateNotNull]
@@ -134,6 +120,21 @@ public partial class GetAzADGroup_Get : global::System.Management.Automation.PSC
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of group
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of group",
+ SerializedName = @"group-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("GroupId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -393,12 +394,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.GroupsGroupGetGroup(GroupId, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline);
+ await this.Client.GroupsGroupGetGroup(Id, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId=GroupId,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdServicePrincipal_Get.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdServicePrincipal_Get.cs
index 83f7a282ca43..30e0607d21ce 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdServicePrincipal_Get.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdServicePrincipal_Get.cs
@@ -120,6 +120,21 @@ public partial class GetAzADServicePrincipal_Get : global::System.Management.Aut
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of servicePrincipal
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of servicePrincipal",
+ SerializedName = @"servicePrincipal-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ServicePrincipalId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -167,20 +182,6 @@ public partial class GetAzADServicePrincipal_Get : global::System.Management.Aut
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Query)]
public string[] Select { get => this._select; set => this._select = value; }
- /// Backing field for property.
- private string _servicePrincipalId;
-
- /// key: id of servicePrincipal
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of servicePrincipal",
- SerializedName = @"servicePrincipal-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; }
-
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -395,12 +396,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ServicePrincipalsServicePrincipalGetServicePrincipal(ServicePrincipalId, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline);
+ await this.Client.ServicePrincipalsServicePrincipalGetServicePrincipal(Id, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdUser_Get.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdUser_Get.cs
index f9d9c8254927..be4bac87d4e1 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdUser_Get.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdUser_Get.cs
@@ -117,6 +117,21 @@ public partial class GetAzADUser_Get : global::System.Management.Automation.PSCm
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of user
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of user",
+ SerializedName = @"user-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("UserId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -164,20 +179,6 @@ public partial class GetAzADUser_Get : global::System.Management.Automation.PSCm
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Query)]
public string[] Select { get => this._select; set => this._select = value; }
- /// Backing field for property.
- private string _userId;
-
- /// key: id of user
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of user",
- SerializedName = @"user-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string UserId { get => this._userId; set => this._userId = value; }
-
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -390,12 +391,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.UsersUserGetUser(UserId, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline);
+ await this.Client.UsersUserGetUser(Id, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs
index 153f6ce9dbc0..59823a26016c 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs
@@ -53,20 +53,6 @@ public partial class RemoveAzADApplication_Delete : global::System.Management.Au
///
private int _responseSize = 0;
- /// Backing field for property.
- private string _applicationId;
-
- /// key: id of application
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of application",
- SerializedName = @"application-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ApplicationId { get => this._applicationId; set => this._applicationId = value; }
-
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
@@ -103,6 +89,21 @@ public partial class RemoveAzADApplication_Delete : global::System.Management.Au
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of application
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of application",
+ SerializedName = @"application-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ApplicationId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Backing field for property.
private string _ifMatch;
@@ -363,12 +364,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ApplicationsApplicationDeleteApplication(ApplicationId, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline);
+ await this.Client.ApplicationsApplicationDeleteApplication(Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs
index bb2a682238da..8b10deaf441a 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs
@@ -77,20 +77,6 @@ public partial class RemoveAzADGroup_Delete : global::System.Management.Automati
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
- /// Backing field for property.
- private string _groupId;
-
- /// key: id of group
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of group",
- SerializedName = @"group-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string GroupId { get => this._groupId; set => this._groupId = value; }
-
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
[global::System.Management.Automation.ValidateNotNull]
@@ -103,6 +89,21 @@ public partial class RemoveAzADGroup_Delete : global::System.Management.Automati
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of group
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of group",
+ SerializedName = @"group-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("GroupId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Backing field for property.
private string _ifMatch;
@@ -363,12 +364,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.GroupsGroupDeleteGroup(GroupId, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline);
+ await this.Client.GroupsGroupDeleteGroup(Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId=GroupId,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs
index 5ef5ccbc3126..09bf99a0904c 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs
@@ -89,6 +89,21 @@ public partial class RemoveAzADServicePrincipal_Delete : global::System.Manageme
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of servicePrincipal
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of servicePrincipal",
+ SerializedName = @"servicePrincipal-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ServicePrincipalId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Backing field for property.
private string _ifMatch;
@@ -142,20 +157,6 @@ public partial class RemoveAzADServicePrincipal_Delete : global::System.Manageme
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
- /// Backing field for property.
- private string _servicePrincipalId;
-
- /// key: id of servicePrincipal
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of servicePrincipal",
- SerializedName = @"servicePrincipal-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; }
-
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -363,12 +364,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ServicePrincipalsServicePrincipalDeleteServicePrincipal(ServicePrincipalId, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline);
+ await this.Client.ServicePrincipalsServicePrincipalDeleteServicePrincipal(Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs
index e56e649168d2..ae65d898b1ec 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs
@@ -86,6 +86,21 @@ public partial class RemoveAzADUser_Delete : global::System.Management.Automatio
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of user
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of user",
+ SerializedName = @"user-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("UserId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Backing field for property.
private string _ifMatch;
@@ -139,20 +154,6 @@ public partial class RemoveAzADUser_Delete : global::System.Management.Automatio
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
- /// Backing field for property.
- private string _userId;
-
- /// key: id of user
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of user",
- SerializedName = @"user-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string UserId { get => this._userId; set => this._userId = value; }
-
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -360,12 +361,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.UsersUserDeleteUser(UserId, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline);
+ await this.Client.UsersUserDeleteUser(Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs
index 002516af242d..e4c8674ff6e7 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs
@@ -56,20 +56,6 @@ public partial class UpdateAzADApplication_UpdateViaJsonFilePath : global::Syste
///
private int _responseSize = 0;
- /// Backing field for property.
- private string _applicationId;
-
- /// key: id of application
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of application",
- SerializedName = @"application-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ApplicationId { get => this._applicationId; set => this._applicationId = value; }
-
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
@@ -106,6 +92,21 @@ public partial class UpdateAzADApplication_UpdateViaJsonFilePath : global::Syste
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of application
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of application",
+ SerializedName = @"application-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ApplicationId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -365,12 +366,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ApplicationsApplicationUpdateApplicationViaJsonString(ApplicationId, _jsonString, onNoContent, onDefault, this, Pipeline);
+ await this.Client.ApplicationsApplicationUpdateApplicationViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs
index 10cfd82b4ffe..1a5d5aa53fcb 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs
@@ -54,20 +54,6 @@ public partial class UpdateAzADApplication_UpdateViaJsonString : global::System.
///
private int _responseSize = 0;
- /// Backing field for property.
- private string _applicationId;
-
- /// key: id of application
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of application",
- SerializedName = @"application-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ApplicationId { get => this._applicationId; set => this._applicationId = value; }
-
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
@@ -104,6 +90,21 @@ public partial class UpdateAzADApplication_UpdateViaJsonString : global::System.
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of application
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of application",
+ SerializedName = @"application-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ApplicationId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -363,12 +364,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ApplicationsApplicationUpdateApplicationViaJsonString(ApplicationId, _jsonString, onNoContent, onDefault, this, Pipeline);
+ await this.Client.ApplicationsApplicationUpdateApplicationViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs
index 9f23120a5abd..7f7ea5fececb 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs
@@ -92,6 +92,21 @@ public partial class UpdateAzADServicePrincipal_UpdateViaJsonFilePath : global::
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of servicePrincipal
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of servicePrincipal",
+ SerializedName = @"servicePrincipal-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ServicePrincipalId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -144,20 +159,6 @@ public partial class UpdateAzADServicePrincipal_UpdateViaJsonFilePath : global::
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
- /// Backing field for property.
- private string _servicePrincipalId;
-
- /// key: id of servicePrincipal
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of servicePrincipal",
- SerializedName = @"servicePrincipal-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; }
-
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -365,12 +366,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipalViaJsonString(ServicePrincipalId, _jsonString, onNoContent, onDefault, this, Pipeline);
+ await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipalViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs
index 2b2e1af430a3..3b4349cecaa0 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs
@@ -90,6 +90,21 @@ public partial class UpdateAzADServicePrincipal_UpdateViaJsonString : global::Sy
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of servicePrincipal
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of servicePrincipal",
+ SerializedName = @"servicePrincipal-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ServicePrincipalId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -142,20 +157,6 @@ public partial class UpdateAzADServicePrincipal_UpdateViaJsonString : global::Sy
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
- /// Backing field for property.
- private string _servicePrincipalId;
-
- /// key: id of servicePrincipal
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of servicePrincipal",
- SerializedName = @"servicePrincipal-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; }
-
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -363,12 +364,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipalViaJsonString(ServicePrincipalId, _jsonString, onNoContent, onDefault, this, Pipeline);
+ await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipalViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs
index 9ed66268d77b..1444f8a48dea 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs
@@ -89,6 +89,21 @@ public partial class UpdateAzADUser_UpdateViaJsonFilePath : global::System.Manag
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of user
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of user",
+ SerializedName = @"user-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("UserId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -141,20 +156,6 @@ public partial class UpdateAzADUser_UpdateViaJsonFilePath : global::System.Manag
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
- /// Backing field for property.
- private string _userId;
-
- /// key: id of user
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of user",
- SerializedName = @"user-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string UserId { get => this._userId; set => this._userId = value; }
-
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -362,12 +363,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.UsersUserUpdateUserViaJsonString(UserId, _jsonString, onNoContent, onDefault, this, Pipeline);
+ await this.Client.UsersUserUpdateUserViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs
index 06a07f518f13..643333bcfa98 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs
@@ -87,6 +87,21 @@ public partial class UpdateAzADUser_UpdateViaJsonString : global::System.Managem
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of user
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of user",
+ SerializedName = @"user-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("UserId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
@@ -139,20 +154,6 @@ public partial class UpdateAzADUser_UpdateViaJsonString : global::System.Managem
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; }
- /// Backing field for property.
- private string _userId;
-
- /// key: id of user
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of user",
- SerializedName = @"user-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string UserId { get => this._userId; set => this._userId = value; }
-
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -360,12 +361,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.UsersUserUpdateUserViaJsonString(UserId, _jsonString, onNoContent, onDefault, this, Pipeline);
+ await this.Client.UsersUserUpdateUserViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs
index b84f8eb5a69f..98b7fb4fdcc6 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs
@@ -104,20 +104,6 @@ public partial class UpdateAzADApplication_UpdateExpanded : global::System.Manag
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphAppRole) })]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphAppRole[] AppRole { get => _body.AppRole ?? null /* fixedArrayOf */; set => _body.AppRole = value; }
- /// Backing field for property.
- private string _applicationId;
-
- /// key: id of application
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of application",
- SerializedName = @"application-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ApplicationId { get => this._applicationId; set => this._applicationId = value; }
-
/// Unique identifier of the applicationTemplate.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Unique identifier of the applicationTemplate.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Body)]
@@ -279,6 +265,21 @@ public partial class UpdateAzADApplication_UpdateExpanded : global::System.Manag
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of application
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of application",
+ SerializedName = @"application-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ApplicationId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
///
/// The URIs that identify the application within its Azure AD tenant, or within a verified custom domain if the application
/// is multi-tenant. For more information, see Application Objects and Service Principal Objects. The any operator is required
@@ -808,12 +809,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ApplicationsApplicationUpdateApplication(ApplicationId, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate);
+ await this.Client.ApplicationsApplicationUpdateApplication(Id, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs
index 98407a9b88bd..0bb5da9b7cfe 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs
@@ -377,6 +377,21 @@ public partial class UpdateAzADServicePrincipal_UpdateExpanded : global::System.
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of servicePrincipal
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of servicePrincipal",
+ SerializedName = @"servicePrincipal-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("ServicePrincipalId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// informationalUrl
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "informationalUrl")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Body)]
@@ -584,20 +599,6 @@ public partial class UpdateAzADServicePrincipal_UpdateExpanded : global::System.
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphSamlSingleSignOnSettings) })]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphSamlSingleSignOnSettings SamlSingleSignOnSetting { get => _body.SamlSingleSignOnSetting ?? null /* object */; set => _body.SamlSingleSignOnSetting = value; }
- /// Backing field for property.
- private string _servicePrincipalId;
-
- /// key: id of servicePrincipal
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of servicePrincipal",
- SerializedName = @"servicePrincipal-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; }
-
///
/// Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid
/// applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client
@@ -905,12 +906,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipal(ServicePrincipalId, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate);
+ await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipal(Id, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs
index 6e0ee3f5e500..dcd889b2cacf 100644
--- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs
+++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs
@@ -358,6 +358,21 @@ public partial class UpdateAzADUser_UpdateExpanded : global::System.Management.A
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
+ /// Backing field for property.
+ private string _id;
+
+ /// key: id of user
+ [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"key: id of user",
+ SerializedName = @"user-id",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::System.Management.Automation.Alias("UserId")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
+ public string Id { get => this._id; set => this._id = value; }
+
///
/// Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also
/// known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft,
@@ -739,20 +754,6 @@ public partial class UpdateAzADUser_UpdateExpanded : global::System.Management.A
PossibleTypes = new [] { typeof(string) })]
public string UsageLocation { get => _body.UsageLocation ?? null; set => _body.UsageLocation = value; }
- /// Backing field for property.
- private string _userId;
-
- /// key: id of user
- [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")]
- [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"key: id of user",
- SerializedName = @"user-id",
- PossibleTypes = new [] { typeof(string) })]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
- public string UserId { get => this._userId; set => this._userId = value; }
-
///
/// The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet
/// standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain
@@ -993,12 +994,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.UsersUserUpdateUser(UserId, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate);
+ await this.Client.UsersUserUpdateUser(Id, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate);
await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
diff --git a/generated/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 b/generated/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1
index f3dd76287940..9dca79e01710 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1
@@ -47,10 +47,11 @@ function Get-AzADApplication {
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ApplicationId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of application
- ${ApplicationId},
+ ${Id},
[Parameter()]
[AllowEmptyCollection()]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 b/generated/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1
index 6a1eb9bff922..bcb5e49e240e 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1
@@ -43,10 +43,11 @@ function Get-AzADGroup {
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('GroupId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of group
- ${GroupId},
+ ${Id},
[Parameter()]
[AllowEmptyCollection()]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 b/generated/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1
index 7bec0906f4de..38421964b394 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1
@@ -47,10 +47,11 @@ function Get-AzADServicePrincipal {
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ServicePrincipalId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of servicePrincipal
- ${ServicePrincipalId},
+ ${Id},
[Parameter()]
[AllowEmptyCollection()]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 b/generated/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1
index abb7d27eb8b7..b21363d01fb8 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1
@@ -41,10 +41,11 @@ function Get-AzADUser {
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('UserId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of user
- ${UserId},
+ ${Id},
[Parameter()]
[AllowEmptyCollection()]
diff --git a/generated/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1
index 772e101404bc..d90aa2c179a2 100644
--- a/generated/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1
@@ -981,10 +981,11 @@ function Get-AzADApplication {
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ApplicationId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of application
- ${ApplicationId},
+ ${Id},
[Parameter()]
[AllowEmptyCollection()]
@@ -1347,10 +1348,11 @@ function Get-AzADGroup {
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('GroupId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of group
- ${GroupId},
+ ${Id},
[Parameter()]
[AllowEmptyCollection()]
@@ -1542,10 +1544,11 @@ function Get-AzADServicePrincipal {
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ServicePrincipalId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of servicePrincipal
- ${ServicePrincipalId},
+ ${Id},
[Parameter()]
[AllowEmptyCollection()]
@@ -2153,10 +2156,11 @@ function Get-AzADUser {
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('UserId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of user
- ${UserId},
+ ${Id},
[Parameter()]
[AllowEmptyCollection()]
@@ -7174,10 +7178,11 @@ function Remove-AzADApplication {
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ApplicationId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of application
- ${ApplicationId},
+ ${Id},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
@@ -7438,10 +7443,11 @@ function Remove-AzADGroup {
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('GroupId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of group
- ${GroupId},
+ ${Id},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
@@ -7905,10 +7911,11 @@ function Remove-AzADServicePrincipal {
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ServicePrincipalId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of servicePrincipal
- ${ServicePrincipalId},
+ ${Id},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
@@ -8033,10 +8040,11 @@ function Remove-AzADUser {
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('UserId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of user
- ${UserId},
+ ${Id},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
@@ -8904,10 +8912,11 @@ function Update-AzADApplication {
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ApplicationId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of application
- ${ApplicationId},
+ ${Id},
[Parameter(ParameterSetName='UpdateExpanded')]
[AllowEmptyCollection()]
@@ -10242,10 +10251,11 @@ function Update-AzADServicePrincipal {
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ServicePrincipalId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of servicePrincipal
- ${ServicePrincipalId},
+ ${Id},
[Parameter(ParameterSetName='UpdateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
@@ -10715,10 +10725,11 @@ function Update-AzADUser {
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('UserId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of user
- ${UserId},
+ ${Id},
[Parameter(ParameterSetName='UpdateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 b/generated/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1
index 67a5ef6004e4..887155924786 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1
@@ -36,10 +36,11 @@ function Remove-AzADApplication {
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ApplicationId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of application
- ${ApplicationId},
+ ${Id},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 b/generated/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1
index 5ac5edff9cb0..b3e2f1d6490d 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1
@@ -36,10 +36,11 @@ function Remove-AzADGroup {
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('GroupId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of group
- ${GroupId},
+ ${Id},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 b/generated/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1
index 9e0a2d4cabba..29b92921bcbc 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1
@@ -36,10 +36,11 @@ function Remove-AzADServicePrincipal {
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ServicePrincipalId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of servicePrincipal
- ${ServicePrincipalId},
+ ${Id},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 b/generated/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1
index 85d8a161cc2f..abd7b4d5492b 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1
@@ -34,10 +34,11 @@ function Remove-AzADUser {
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('UserId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of user
- ${UserId},
+ ${Id},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 b/generated/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1
index fb91d976e5ac..215b87b78ac5 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1
@@ -777,10 +777,11 @@ function Update-AzADApplication {
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ApplicationId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of application
- ${ApplicationId},
+ ${Id},
[Parameter(ParameterSetName='UpdateExpanded')]
[AllowEmptyCollection()]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 b/generated/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1
index 50ec2c134e3f..3fe27289db5f 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1
@@ -980,10 +980,11 @@ function Update-AzADServicePrincipal {
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ServicePrincipalId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of servicePrincipal
- ${ServicePrincipalId},
+ ${Id},
[Parameter(ParameterSetName='UpdateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
diff --git a/generated/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 b/generated/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1
index f15260da09c1..29e797ea2137 100644
--- a/generated/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1
+++ b/generated/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1
@@ -56,10 +56,11 @@ function Update-AzADUser {
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('UserId')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')]
[System.String]
# key: id of user
- ${UserId},
+ ${Id},
[Parameter(ParameterSetName='UpdateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]