diff --git a/src/Monitor/ActionGroup.Autorest/README.md b/src/Monitor/ActionGroup.Autorest/README.md index f2010109fdc9..7b1f30f8d056 100644 --- a/src/Monitor/ActionGroup.Autorest/README.md +++ b/src/Monitor/ActionGroup.Autorest/README.md @@ -3,9 +3,6 @@ This directory contains the PowerShell module for the ActionGroup service. --- -## Status -[![Az.ActionGroup](https://img.shields.io/powershellgallery/v/Az.ActionGroup.svg?style=flat-square&label=Az.ActionGroup "Az.ActionGroup")](https://www.powershellgallery.com/packages/Az.ActionGroup/) - ## Info - Modifiable: yes - Generated: all @@ -46,6 +43,8 @@ namespace: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup subject-prefix: ActionGroup resourcegroup-append: true nested-object-to-string: true +disable-transform-identity-type: true +flatten-userassignedidentity: false use-extension: "@autorest/powershell": "4.x" diff --git a/src/Monitor/ActionGroup.Autorest/docs/Enable-AzActionGroupReceiver.md b/src/Monitor/ActionGroup.Autorest/docs/Enable-AzActionGroupReceiver.md index a31e92e62af8..0d84f1c60bcb 100644 --- a/src/Monitor/ActionGroup.Autorest/docs/Enable-AzActionGroupReceiver.md +++ b/src/Monitor/ActionGroup.Autorest/docs/Enable-AzActionGroupReceiver.md @@ -91,7 +91,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity diff --git a/src/Monitor/ActionGroup.Autorest/docs/Get-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/docs/Get-AzActionGroup.md index dfbc11500bc2..abe84917b934 100644 --- a/src/Monitor/ActionGroup.Autorest/docs/Get-AzActionGroup.md +++ b/src/Monitor/ActionGroup.Autorest/docs/Get-AzActionGroup.md @@ -103,7 +103,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroup.md index 2f9796f5b670..b29d8299323e 100644 --- a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroup.md +++ b/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroup.md @@ -131,7 +131,6 @@ This command creates an action group with no receiver. ### -ArmRoleReceiver The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported. -To construct, see NOTES section for ARMROLERECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IArmRoleReceiver[] @@ -147,7 +146,6 @@ Accept wildcard characters: False ### -AutomationRunbookReceiver The list of AutomationRunbook receivers that are part of this action group. -To construct, see NOTES section for AUTOMATIONRUNBOOKRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAutomationRunbookReceiver[] @@ -163,7 +161,6 @@ Accept wildcard characters: False ### -AzureAppPushReceiver The list of AzureAppPush receivers that are part of this action group. -To construct, see NOTES section for AZUREAPPPUSHRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAzureAppPushReceiver[] @@ -179,7 +176,6 @@ Accept wildcard characters: False ### -AzureFunctionReceiver The list of azure function receivers that are part of this action group. -To construct, see NOTES section for AZUREFUNCTIONRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAzureFunctionReceiver[] @@ -211,7 +207,6 @@ Accept wildcard characters: False ### -EmailReceiver The list of email receivers that are part of this action group. -To construct, see NOTES section for EMAILRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IEmailReceiver[] @@ -243,7 +238,6 @@ Accept wildcard characters: False ### -EventHubReceiver The list of event hub receivers that are part of this action group. -To construct, see NOTES section for EVENTHUBRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IEventHubReceiver[] @@ -275,7 +269,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity @@ -291,7 +284,6 @@ Accept wildcard characters: False ### -ItsmReceiver The list of ITSM receivers that are part of this action group. -To construct, see NOTES section for ITSMRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IItsmReceiver[] @@ -352,7 +344,6 @@ Accept wildcard characters: False ### -LogicAppReceiver The list of logic app receivers that are part of this action group. -To construct, see NOTES section for LOGICAPPRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ILogicAppReceiver[] @@ -399,7 +390,6 @@ Accept wildcard characters: False ### -SmsReceiver The list of SMS receivers that are part of this action group. -To construct, see NOTES section for SMSRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ISmsReceiver[] @@ -445,7 +435,6 @@ Accept wildcard characters: False ### -VoiceReceiver The list of voice receivers that are part of this action group. -To construct, see NOTES section for VOICERECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IVoiceReceiver[] @@ -461,7 +450,6 @@ Accept wildcard characters: False ### -WebhookReceiver The list of webhook receivers that are part of this action group. -To construct, see NOTES section for WEBHOOKRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IWebhookReceiver[] diff --git a/src/Monitor/ActionGroup.Autorest/docs/Remove-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/docs/Remove-AzActionGroup.md index a642ac2b1a95..71409247dc9d 100644 --- a/src/Monitor/ActionGroup.Autorest/docs/Remove-AzActionGroup.md +++ b/src/Monitor/ActionGroup.Autorest/docs/Remove-AzActionGroup.md @@ -56,7 +56,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity diff --git a/src/Monitor/ActionGroup.Autorest/docs/Update-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/docs/Update-AzActionGroup.md index b2ffc13417b5..556469c0169b 100644 --- a/src/Monitor/ActionGroup.Autorest/docs/Update-AzActionGroup.md +++ b/src/Monitor/ActionGroup.Autorest/docs/Update-AzActionGroup.md @@ -18,10 +18,10 @@ Update-AzActionGroup -Name -ResourceGroupName [-SubscriptionId [-ArmRoleReceiver ] [-AutomationRunbookReceiver ] [-AzureAppPushReceiver ] [-AzureFunctionReceiver ] [-EmailReceiver ] [-Enabled] [-EventHubReceiver ] - [-GroupShortName ] [-ItsmReceiver ] [-Location ] - [-LogicAppReceiver ] [-SmsReceiver ] [-Tag ] - [-VoiceReceiver ] [-WebhookReceiver ] [-DefaultProfile ] - [-Confirm] [-WhatIf] [] + [-GroupShortName ] [-ItsmReceiver ] [-LogicAppReceiver ] + [-SmsReceiver ] [-Tag ] [-VoiceReceiver ] + [-WebhookReceiver ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] ``` ### UpdateViaIdentityExpanded @@ -30,9 +30,9 @@ Update-AzActionGroup -InputObject [-ArmRoleReceiver ] [-AzureAppPushReceiver ] [-AzureFunctionReceiver ] [-EmailReceiver ] [-Enabled] [-EventHubReceiver ] [-GroupShortName ] [-ItsmReceiver ] - [-Location ] [-LogicAppReceiver ] [-SmsReceiver ] - [-Tag ] [-VoiceReceiver ] [-WebhookReceiver ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-LogicAppReceiver ] [-SmsReceiver ] [-Tag ] + [-VoiceReceiver ] [-WebhookReceiver ] [-DefaultProfile ] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -135,7 +135,6 @@ The final command updates specified action group with action group object. ### -ArmRoleReceiver The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported. -To construct, see NOTES section for ARMROLERECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IArmRoleReceiver[] @@ -151,7 +150,6 @@ Accept wildcard characters: False ### -AutomationRunbookReceiver The list of AutomationRunbook receivers that are part of this action group. -To construct, see NOTES section for AUTOMATIONRUNBOOKRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAutomationRunbookReceiver[] @@ -167,7 +165,6 @@ Accept wildcard characters: False ### -AzureAppPushReceiver The list of AzureAppPush receivers that are part of this action group. -To construct, see NOTES section for AZUREAPPPUSHRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAzureAppPushReceiver[] @@ -183,7 +180,6 @@ Accept wildcard characters: False ### -AzureFunctionReceiver The list of azure function receivers that are part of this action group. -To construct, see NOTES section for AZUREFUNCTIONRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAzureFunctionReceiver[] @@ -215,7 +211,6 @@ Accept wildcard characters: False ### -EmailReceiver The list of email receivers that are part of this action group. -To construct, see NOTES section for EMAILRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IEmailReceiver[] @@ -247,7 +242,6 @@ Accept wildcard characters: False ### -EventHubReceiver The list of event hub receivers that are part of this action group. -To construct, see NOTES section for EVENTHUBRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IEventHubReceiver[] @@ -279,7 +273,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity @@ -295,7 +288,6 @@ Accept wildcard characters: False ### -ItsmReceiver The list of ITSM receivers that are part of this action group. -To construct, see NOTES section for ITSMRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IItsmReceiver[] @@ -309,24 +301,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Location -Resource location - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -LogicAppReceiver The list of logic app receivers that are part of this action group. -To construct, see NOTES section for LOGICAPPRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ILogicAppReceiver[] @@ -373,7 +349,6 @@ Accept wildcard characters: False ### -SmsReceiver The list of SMS receivers that are part of this action group. -To construct, see NOTES section for SMSRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ISmsReceiver[] @@ -419,7 +394,6 @@ Accept wildcard characters: False ### -VoiceReceiver The list of voice receivers that are part of this action group. -To construct, see NOTES section for VOICERECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IVoiceReceiver[] @@ -435,7 +409,6 @@ Accept wildcard characters: False ### -WebhookReceiver The list of webhook receivers that are part of this action group. -To construct, see NOTES section for WEBHOOKRECEIVER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IWebhookReceiver[] diff --git a/src/Monitor/ActionGroup.Autorest/test/loadEnv.ps1 b/src/Monitor/ActionGroup.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Monitor/ActionGroup.Autorest/test/loadEnv.ps1 +++ b/src/Monitor/ActionGroup.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/Monitor/ActionGroup.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Monitor/ActionGroup.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Monitor/ActionGroup.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/Monitor/ActivityLogAlert.Autorest/README.md b/src/Monitor/ActivityLogAlert.Autorest/README.md index fd8e0047dc65..81d6e174a860 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/README.md +++ b/src/Monitor/ActivityLogAlert.Autorest/README.md @@ -3,9 +3,6 @@ This directory contains the PowerShell module for the ActivityLogAlert service. --- -## Status -[![Az.ActivityLogAlert](https://img.shields.io/powershellgallery/v/Az.ActivityLogAlert.svg?style=flat-square&label=Az.ActivityLogAlert "Az.ActivityLogAlert")](https://www.powershellgallery.com/packages/Az.ActivityLogAlert/) - ## Info - Modifiable: yes - Generated: all diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md index 01799541541b..7a46f565ad2f 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md @@ -64,7 +64,8 @@ Get activity log alert by name ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -153,18 +154,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[ActivityLogAlertName ]`: The name of the Activity Log Alert rule. - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md index 40d3025170a8..c70aac582de3 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md @@ -26,7 +26,7 @@ Create a new Activity Log Alert rule or update an existing one. ### Example 1: Create activity log alert ```powershell -$scope = "subscriptions/"+(Get-AzContext).Subscription.ID +$scope = "/subscriptions/"+(Get-AzContext).Subscription.ID $actiongroup=New-AzActivityLogAlertActionGroupObject -Id $ActionGroupResourceId -WebhookProperty @{"sampleWebhookProperty"="SamplePropertyValue"} $condition1=New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -Equal Administrative -Field category $condition2=New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -Equal Error -Field level @@ -256,26 +256,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`ACTION `: The list of the Action Groups. To construct, see NOTES section for ACTIONGROUP properties and create a hash table. - - `Id `: The resource ID of the Action Group. This cannot be null or empty. - - `[WebhookProperty ]`: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload. - - `[(Any) ]`: This indicates any property can be added to this object. - -`CONDITION `: The list of Activity Log Alert rule conditions. To construct, see NOTES section for CONDITIONALLOF properties and create a hash table. - - `[ContainsAny ]`: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. - - `[Equal ]`: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met. - - `[Field ]`: The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'. - - `[AnyOf ]`: An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. - - `[ContainsAny ]`: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. - - `[Equal ]`: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met. - - `[Field ]`: The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'. - ## RELATED LINKS diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md index cf7de8419b3c..5553b9f23d22 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md @@ -75,15 +75,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`WEBHOOKPROPERTY `: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload. - - `[(Any) ]`: This indicates any property can be added to this object. - ## RELATED LINKS diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md index c18c9ce88f2b..1bf4e1145e44 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md @@ -112,17 +112,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`ANYOF `: An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. - - `[ContainsAny ]`: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. - - `[Equal ]`: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met. - - `[Field ]`: The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'. - ## RELATED LINKS diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md index 725b2d8d66f9..ad8f7527e3cf 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md @@ -88,7 +88,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md index 71ee54e3a4e4..384c75743a68 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md @@ -47,7 +47,8 @@ Remove activity log alert by pipeline input object ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -182,18 +183,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[ActivityLogAlertName ]`: The name of the Activity Log Alert rule. - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md index d15ee8de68ad..e88a55bd9bbd 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md @@ -195,18 +195,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[ActivityLogAlertName ]`: The name of the Activity Log Alert rule. - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/ActivityLogAlert.Autorest/test/loadEnv.ps1 b/src/Monitor/ActivityLogAlert.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/test/loadEnv.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/Monitor/ActivityLogAlert.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Monitor/ActivityLogAlert.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Monitor/ActivityLogAlert.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/Monitor/Autoscale.Autorest/Az.Autoscale.psd1 b/src/Monitor/Autoscale.Autorest/Az.Autoscale.psd1 index c5bdcf2e71ec..2d65a82092e0 100644 --- a/src/Monitor/Autoscale.Autorest/Az.Autoscale.psd1 +++ b/src/Monitor/Autoscale.Autorest/Az.Autoscale.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Autoscale.private.dll' FormatsToProcess = './Az.Autoscale.format.ps1xml' - FunctionsToExport = 'Get-AzAutoscalePredictiveMetric', 'Get-AzAutoscaleSetting', 'New-AzAutoscaleNotificationObject', 'New-AzAutoscaleProfileObject', 'New-AzAutoscaleScaleRuleMetricDimensionObject', 'New-AzAutoscaleScaleRuleObject', 'New-AzAutoscaleSetting', 'New-AzAutoscaleWebhookNotificationObject', 'Remove-AzAutoscaleSetting', '*' + FunctionsToExport = 'Get-AzAutoscalePredictiveMetric', 'Get-AzAutoscaleSetting', 'New-AzAutoscaleNotificationObject', 'New-AzAutoscaleProfileObject', 'New-AzAutoscaleScaleRuleMetricDimensionObject', 'New-AzAutoscaleScaleRuleObject', 'New-AzAutoscaleSetting', 'New-AzAutoscaleWebhookNotificationObject', 'Remove-AzAutoscaleSetting', 'Update-AzAutoscaleSetting', '*' AliasesToExport = '*' PrivateData = @{ PSData = @{ diff --git a/src/Monitor/Autoscale.Autorest/README.md b/src/Monitor/Autoscale.Autorest/README.md index bcd43fed9b5d..48470da35a48 100644 --- a/src/Monitor/Autoscale.Autorest/README.md +++ b/src/Monitor/Autoscale.Autorest/README.md @@ -3,9 +3,6 @@ This directory contains the PowerShell module for the Autoscale service. --- -## Status -[![Az.Autoscale](https://img.shields.io/powershellgallery/v/Az.Autoscale.svg?style=flat-square&label=Az.Autoscale "Az.Autoscale")](https://www.powershellgallery.com/packages/Az.Autoscale/) - ## Info - Modifiable: yes - Generated: all diff --git a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md b/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md index 034f7f117284..916384d3ce05 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md +++ b/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md @@ -71,7 +71,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -209,18 +210,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AutoscaleSettingName ]`: The autoscale setting name. - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md index e2b3beb92b90..5883aff8b65a 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md @@ -63,7 +63,8 @@ Get autoscale setting by name ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -152,18 +153,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AutoscaleSettingName ]`: The autoscale setting name. - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md index 6f1909b18279..63fae2b21041 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md @@ -106,17 +106,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`WEBHOOK `: the collection of webhook notifications. - - `[Property ]`: a property bag of settings. This value can be empty. - - `[(Any) ]`: This indicates any property can be added to this object. - - `[ServiceUri ]`: the service address to receive the notification. - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md index 91ab701a82b1..8095b2c37816 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md @@ -271,33 +271,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`RULE `: the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. - - `MetricTriggerMetricName `: the name of the metric that defines what the rule monitors. - - `MetricTriggerMetricResourceUri `: the resource identifier of the resource the rule monitors. - - `MetricTriggerOperator `: the operator that is used to compare the metric data and the threshold. - - `MetricTriggerStatistic `: the metric statistic type. How the metrics from multiple instances are combined. - - `MetricTriggerThreshold `: the threshold of the metric that triggers the scale action. - - `MetricTriggerTimeAggregation `: time aggregation type. How the data that is collected should be combined over time. The default value is Average. - - `MetricTriggerTimeGrain `: the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute. - - `MetricTriggerTimeWindow `: the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. - - `ScaleActionCooldown `: the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. - - `ScaleActionDirection `: the scale direction. Whether the scaling action increases or decreases the number of instances. - - `ScaleActionType `: the type of action that should occur when the scale rule fires. - - `[MetricTriggerDimension ]`: List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. - - `DimensionName `: Name of the dimension. - - `Operator `: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values - - `Value `: list of dimension values. For example: ["App1","App2"]. - - `[MetricTriggerDividePerInstance ]`: a value indicating whether metric should divide per instance. - - `[MetricTriggerMetricNamespace ]`: the namespace of the metric that defines what the rule monitors. - - `[MetricTriggerMetricResourceLocation ]`: the location of the resource the rule monitors. - - `[ScaleActionValue ]`: the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1. - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md index dd41c4fa3af8..c69d5fb132e3 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md @@ -91,7 +91,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md index 7aba9c6b2c28..6559dc670c6b 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md @@ -302,17 +302,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`METRICTRIGGERDIMENSION `: List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. - - `DimensionName `: Name of the dimension. - - `Operator `: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values - - `Value `: list of dimension values. For example: ["App1","App2"]. - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md index 040374ce436b..70c6f0c030ee 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md @@ -48,7 +48,8 @@ Create autoscale setting for vmss ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -345,119 +346,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AutoscaleSettingName ]`: The autoscale setting name. - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - -`NOTIFICATION `: the collection of notifications. - - `[EmailCustomEmail ]`: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored. - - `[EmailSendToSubscriptionAdministrator ]`: a value indicating whether to send email to subscription administrator. - - `[EmailSendToSubscriptionCoAdministrator ]`: a value indicating whether to send email to subscription co-administrators. - - `[Webhook ]`: the collection of webhook notifications. - - `[Property ]`: a property bag of settings. This value can be empty. - - `[(Any) ]`: This indicates any property can be added to this object. - - `[ServiceUri ]`: the service address to receive the notification. - -`PARAMETER `: The autoscale setting resource. - - `Location `: Resource location - - `Profile `: the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. - - `CapacityDefault `: the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. - - `CapacityMaximum `: the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. - - `CapacityMinimum `: the minimum number of instances for the resource. - - `Name `: the name of the profile. - - `Rule `: the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. - - `MetricTriggerMetricName `: the name of the metric that defines what the rule monitors. - - `MetricTriggerMetricResourceUri `: the resource identifier of the resource the rule monitors. - - `MetricTriggerOperator `: the operator that is used to compare the metric data and the threshold. - - `MetricTriggerStatistic `: the metric statistic type. How the metrics from multiple instances are combined. - - `MetricTriggerThreshold `: the threshold of the metric that triggers the scale action. - - `MetricTriggerTimeAggregation `: time aggregation type. How the data that is collected should be combined over time. The default value is Average. - - `MetricTriggerTimeGrain `: the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute. - - `MetricTriggerTimeWindow `: the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. - - `ScaleActionCooldown `: the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. - - `ScaleActionDirection `: the scale direction. Whether the scaling action increases or decreases the number of instances. - - `ScaleActionType `: the type of action that should occur when the scale rule fires. - - `[MetricTriggerDimension ]`: List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. - - `DimensionName `: Name of the dimension. - - `Operator `: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values - - `Value `: list of dimension values. For example: ["App1","App2"]. - - `[MetricTriggerDividePerInstance ]`: a value indicating whether metric should divide per instance. - - `[MetricTriggerMetricNamespace ]`: the namespace of the metric that defines what the rule monitors. - - `[MetricTriggerMetricResourceLocation ]`: the location of the resource the rule monitors. - - `[ScaleActionValue ]`: the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1. - - `[FixedDateEnd ]`: the end time for the profile in ISO 8601 format. - - `[FixedDateStart ]`: the start time for the profile in ISO 8601 format. - - `[FixedDateTimeZone ]`: the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time - - `[RecurrenceFrequency ]`: the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. - - `[ScheduleDay ]`: the collection of days that the profile takes effect on. Possible values are Sunday through Saturday. - - `[ScheduleHour ]`: A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported). - - `[ScheduleMinute ]`: A collection of minutes at which the profile takes effect at. - - `[ScheduleTimeZone ]`: the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time - - `[SystemDataCreatedAt ]`: The timestamp of resource creation (UTC). - - `[SystemDataCreatedBy ]`: The identity that created the resource. - - `[SystemDataCreatedByType ]`: The type of identity that created the resource. - - `[SystemDataLastModifiedAt ]`: The timestamp of resource last modification (UTC) - - `[SystemDataLastModifiedBy ]`: The identity that last modified the resource. - - `[SystemDataLastModifiedByType ]`: The type of identity that last modified the resource. - - `[Tag ]`: Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. - - `[(Any) ]`: This indicates any property can be added to this object. - - `[Enabled ]`: the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'. - - `[Notification ]`: the collection of notifications. - - `[EmailCustomEmail ]`: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored. - - `[EmailSendToSubscriptionAdministrator ]`: a value indicating whether to send email to subscription administrator. - - `[EmailSendToSubscriptionCoAdministrator ]`: a value indicating whether to send email to subscription co-administrators. - - `[Webhook ]`: the collection of webhook notifications. - - `[Property ]`: a property bag of settings. This value can be empty. - - `[(Any) ]`: This indicates any property can be added to this object. - - `[ServiceUri ]`: the service address to receive the notification. - - `[PredictiveAutoscalePolicyScaleLookAheadTime ]`: the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format. - - `[PredictiveAutoscalePolicyScaleMode ]`: the predictive autoscale mode - - `[PropertiesName ]`: the name of the autoscale setting. - - `[TargetResourceLocation ]`: the location of the resource that the autoscale setting should be added to. - - `[TargetResourceUri ]`: the resource identifier of the resource that the autoscale setting should be added to. - -`PROFILE `: the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. - - `CapacityDefault `: the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. - - `CapacityMaximum `: the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. - - `CapacityMinimum `: the minimum number of instances for the resource. - - `Name `: the name of the profile. - - `Rule `: the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. - - `MetricTriggerMetricName `: the name of the metric that defines what the rule monitors. - - `MetricTriggerMetricResourceUri `: the resource identifier of the resource the rule monitors. - - `MetricTriggerOperator `: the operator that is used to compare the metric data and the threshold. - - `MetricTriggerStatistic `: the metric statistic type. How the metrics from multiple instances are combined. - - `MetricTriggerThreshold `: the threshold of the metric that triggers the scale action. - - `MetricTriggerTimeAggregation `: time aggregation type. How the data that is collected should be combined over time. The default value is Average. - - `MetricTriggerTimeGrain `: the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute. - - `MetricTriggerTimeWindow `: the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. - - `ScaleActionCooldown `: the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. - - `ScaleActionDirection `: the scale direction. Whether the scaling action increases or decreases the number of instances. - - `ScaleActionType `: the type of action that should occur when the scale rule fires. - - `[MetricTriggerDimension ]`: List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. - - `DimensionName `: Name of the dimension. - - `Operator `: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values - - `Value `: list of dimension values. For example: ["App1","App2"]. - - `[MetricTriggerDividePerInstance ]`: a value indicating whether metric should divide per instance. - - `[MetricTriggerMetricNamespace ]`: the namespace of the metric that defines what the rule monitors. - - `[MetricTriggerMetricResourceLocation ]`: the location of the resource the rule monitors. - - `[ScaleActionValue ]`: the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1. - - `[FixedDateEnd ]`: the end time for the profile in ISO 8601 format. - - `[FixedDateStart ]`: the start time for the profile in ISO 8601 format. - - `[FixedDateTimeZone ]`: the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time - - `[RecurrenceFrequency ]`: the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. - - `[ScheduleDay ]`: the collection of days that the profile takes effect on. Possible values are Sunday through Saturday. - - `[ScheduleHour ]`: A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported). - - `[ScheduleMinute ]`: A collection of minutes at which the profile takes effect at. - - `[ScheduleTimeZone ]`: the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md index d67eb0be2122..614b3f5701ac 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md @@ -74,15 +74,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`PROPERTY `: a property bag of settings. This value can be empty. - - `[(Any) ]`: This indicates any property can be added to this object. - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md index 7dc53b9854b4..e5c5c5e6fa53 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md @@ -39,7 +39,8 @@ Remove autoscale setting ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -174,18 +175,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AutoscaleSettingName ]`: The autoscale setting name. - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md index fb702bd46244..af99b248ea60 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md @@ -294,61 +294,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AutoscaleSettingName ]`: The autoscale setting name. - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - -`NOTIFICATION `: the collection of notifications. - - `[EmailCustomEmail ]`: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored. - - `[EmailSendToSubscriptionAdministrator ]`: a value indicating whether to send email to subscription administrator. - - `[EmailSendToSubscriptionCoAdministrator ]`: a value indicating whether to send email to subscription co-administrators. - - `[Webhook ]`: the collection of webhook notifications. - - `[Property ]`: a property bag of settings. This value can be empty. - - `[(Any) ]`: This indicates any property can be added to this object. - - `[ServiceUri ]`: the service address to receive the notification. - -`PROFILE `: the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. - - `CapacityDefault `: the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. - - `CapacityMaximum `: the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. - - `CapacityMinimum `: the minimum number of instances for the resource. - - `Name `: the name of the profile. - - `Rule `: the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. - - `MetricTriggerMetricName `: the name of the metric that defines what the rule monitors. - - `MetricTriggerMetricResourceUri `: the resource identifier of the resource the rule monitors. - - `MetricTriggerOperator `: the operator that is used to compare the metric data and the threshold. - - `MetricTriggerStatistic `: the metric statistic type. How the metrics from multiple instances are combined. - - `MetricTriggerThreshold `: the threshold of the metric that triggers the scale action. - - `MetricTriggerTimeAggregation `: time aggregation type. How the data that is collected should be combined over time. The default value is Average. - - `MetricTriggerTimeGrain `: the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute. - - `MetricTriggerTimeWindow `: the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. - - `ScaleActionCooldown `: the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. - - `ScaleActionDirection `: the scale direction. Whether the scaling action increases or decreases the number of instances. - - `ScaleActionType `: the type of action that should occur when the scale rule fires. - - `[MetricTriggerDimension ]`: List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. - - `DimensionName `: Name of the dimension. - - `Operator `: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values - - `Value `: list of dimension values. For example: ["App1","App2"]. - - `[MetricTriggerDividePerInstance ]`: a value indicating whether metric should divide per instance. - - `[MetricTriggerMetricNamespace ]`: the namespace of the metric that defines what the rule monitors. - - `[MetricTriggerMetricResourceLocation ]`: the location of the resource the rule monitors. - - `[ScaleActionValue ]`: the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1. - - `[FixedDateEnd ]`: the end time for the profile in ISO 8601 format. - - `[FixedDateStart ]`: the start time for the profile in ISO 8601 format. - - `[FixedDateTimeZone ]`: the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time - - `[RecurrenceFrequency ]`: the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. - - `[ScheduleDay ]`: the collection of days that the profile takes effect on. Possible values are Sunday through Saturday. - - `[ScheduleHour ]`: A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported). - - `[ScheduleMinute ]`: A collection of minutes at which the profile takes effect at. - - `[ScheduleTimeZone ]`: the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time - ## RELATED LINKS diff --git a/src/Monitor/Autoscale.Autorest/test/loadEnv.ps1 b/src/Monitor/Autoscale.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Monitor/Autoscale.Autorest/test/loadEnv.ps1 +++ b/src/Monitor/Autoscale.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/Monitor/Autoscale.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Monitor/Autoscale.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Monitor/Autoscale.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/Monitor/DataCollectionRule.Autorest/README.md b/src/Monitor/DataCollectionRule.Autorest/README.md index f1d2f5f4686a..a2235b4774cb 100644 --- a/src/Monitor/DataCollectionRule.Autorest/README.md +++ b/src/Monitor/DataCollectionRule.Autorest/README.md @@ -3,9 +3,6 @@ This directory contains the PowerShell module for the DataCollectionRule service. --- -## Status -[![Az.DataCollectionRule](https://img.shields.io/powershellgallery/v/Az.DataCollectionRule.svg?style=flat-square&label=Az.DataCollectionRule "Az.DataCollectionRule")](https://www.powershellgallery.com/packages/Az.DataCollectionRule/) - ## Info - Modifiable: yes - Generated: all @@ -46,6 +43,8 @@ title: DataCollectionRule module-version: 0.1.0 namespace: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection subject-prefix: '' +disable-transform-identity-type: true +flatten-userassignedidentity: false directive: # custom required body diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionEndpoint.md b/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionEndpoint.md index 64f55ccae874..abf4c237cb10 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionEndpoint.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionEndpoint.md @@ -130,7 +130,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRule.md index 83ac018b0a1f..3cf13ebdc7d2 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRule.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRule.md @@ -165,7 +165,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRuleAssociation.md b/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRuleAssociation.md index 5d6003c74617..62ca1a23c24f 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRuleAssociation.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRuleAssociation.md @@ -198,7 +198,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionRule.md index daad00a1df8a..5af98b29a0e0 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionRule.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionRule.md @@ -381,7 +381,6 @@ Accept wildcard characters: False ### -DataFlow The specification of data flows. -To construct, see NOTES section for DATAFLOW properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataFlow[] @@ -443,7 +442,6 @@ Accept wildcard characters: False ### -DataSourceExtension The list of Azure VM extension data source configurations. -To construct, see NOTES section for DATASOURCEEXTENSION properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IExtensionDataSource[] @@ -459,7 +457,6 @@ Accept wildcard characters: False ### -DataSourceIisLog The list of IIS logs source configurations. -To construct, see NOTES section for DATASOURCEIISLOG properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IIisLogsDataSource[] @@ -475,7 +472,6 @@ Accept wildcard characters: False ### -DataSourceLogFile The list of Log files source configurations. -To construct, see NOTES section for DATASOURCELOGFILE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ILogFilesDataSource[] @@ -491,7 +487,6 @@ Accept wildcard characters: False ### -DataSourcePerformanceCounter The list of performance counter data source configurations. -To construct, see NOTES section for DATASOURCEPERFORMANCECOUNTER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPerfCounterDataSource[] @@ -507,7 +502,6 @@ Accept wildcard characters: False ### -DataSourcePlatformTelemetry The list of platform telemetry configurations -To construct, see NOTES section for DATASOURCEPLATFORMTELEMETRY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPlatformTelemetryDataSource[] @@ -523,7 +517,6 @@ Accept wildcard characters: False ### -DataSourcePrometheusForwarder The list of Prometheus forwarder data source configurations. -To construct, see NOTES section for DATASOURCEPROMETHEUSFORWARDER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPrometheusForwarderDataSource[] @@ -539,7 +532,6 @@ Accept wildcard characters: False ### -DataSourceSyslog The list of Syslog data source configurations. -To construct, see NOTES section for DATASOURCESYSLOG properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ISyslogDataSource[] @@ -555,7 +547,6 @@ Accept wildcard characters: False ### -DataSourceWindowsEventLog The list of Windows Event Log data source configurations. -To construct, see NOTES section for DATASOURCEWINDOWSEVENTLOG properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IWindowsEventLogDataSource[] @@ -571,7 +562,6 @@ Accept wildcard characters: False ### -DataSourceWindowsFirewallLog The list of Windows Firewall logs source configurations. -To construct, see NOTES section for DATASOURCEWINDOWSFIREWALLLOG properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IWindowsFirewallLogsDataSource[] @@ -634,7 +624,6 @@ Accept wildcard characters: False ### -DestinationEventHub List of Event Hubs destinations. -To construct, see NOTES section for DESTINATIONEVENTHUB properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IEventHubDestination[] @@ -650,7 +639,6 @@ Accept wildcard characters: False ### -DestinationEventHubsDirect List of Event Hubs Direct destinations. -To construct, see NOTES section for DESTINATIONEVENTHUBSDIRECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IEventHubDirectDestination[] @@ -666,7 +654,6 @@ Accept wildcard characters: False ### -DestinationLogAnalytic List of Log Analytics destinations. -To construct, see NOTES section for DESTINATIONLOGANALYTIC properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ILogAnalyticsDestination[] @@ -682,7 +669,6 @@ Accept wildcard characters: False ### -DestinationMonitoringAccount List of monitoring account destinations. -To construct, see NOTES section for DESTINATIONMONITORINGACCOUNT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IMonitoringAccountDestination[] @@ -698,7 +684,6 @@ Accept wildcard characters: False ### -DestinationStorageAccount List of storage accounts destinations. -To construct, see NOTES section for DESTINATIONSTORAGEACCOUNT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageBlobDestination[] @@ -715,7 +700,6 @@ Accept wildcard characters: False ### -DestinationStorageBlobsDirect List of Storage Blob Direct destinations. To be used only for sending data directly to store from the agent. -To construct, see NOTES section for DESTINATIONSTORAGEBLOBSDIRECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageBlobDestination[] @@ -731,7 +715,6 @@ Accept wildcard characters: False ### -DestinationStorageTablesDirect List of Storage Table Direct destinations. -To construct, see NOTES section for DESTINATIONSTORAGETABLESDIRECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageTableDestination[] diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionEndpoint.md b/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionEndpoint.md index bc1ac44bde20..69122167591e 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionEndpoint.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionEndpoint.md @@ -56,7 +56,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRule.md index a1c397044859..456751df3628 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRule.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRule.md @@ -56,7 +56,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRuleAssociation.md b/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRuleAssociation.md index 468a62b47887..462b938aa62a 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRuleAssociation.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRuleAssociation.md @@ -72,7 +72,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionEndpoint.md b/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionEndpoint.md index b03f074c0735..d7072b201b8d 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionEndpoint.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionEndpoint.md @@ -109,7 +109,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRule.md index bb4e89ddc334..cfa3e5788a0d 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRule.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRule.md @@ -31,7 +31,7 @@ Update-AzDataCollectionRule -Name -ResourceGroupName [-Subscri [-DestinationStorageAccount ] [-DestinationStorageBlobsDirect ] [-DestinationStorageTablesDirect ] [-IdentityType ] [-Kind ] - [-Location ] [-StreamDeclaration ] [-Tag ] [-UserAssignedIdentity ] + [-StreamDeclaration ] [-Tag ] [-UserAssignedIdentity ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -53,7 +53,7 @@ Update-AzDataCollectionRule -InputObject [-DataCol [-DestinationStorageAccount ] [-DestinationStorageBlobsDirect ] [-DestinationStorageTablesDirect ] [-IdentityType ] [-Kind ] - [-Location ] [-StreamDeclaration ] [-Tag ] [-UserAssignedIdentity ] + [-StreamDeclaration ] [-Tag ] [-UserAssignedIdentity ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -166,7 +166,6 @@ Accept wildcard characters: False ### -DataFlow The specification of data flows. -To construct, see NOTES section for DATAFLOW properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataFlow[] @@ -228,7 +227,6 @@ Accept wildcard characters: False ### -DataSourceExtension The list of Azure VM extension data source configurations. -To construct, see NOTES section for DATASOURCEEXTENSION properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IExtensionDataSource[] @@ -244,7 +242,6 @@ Accept wildcard characters: False ### -DataSourceIisLog The list of IIS logs source configurations. -To construct, see NOTES section for DATASOURCEIISLOG properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IIisLogsDataSource[] @@ -260,7 +257,6 @@ Accept wildcard characters: False ### -DataSourceLogFile The list of Log files source configurations. -To construct, see NOTES section for DATASOURCELOGFILE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ILogFilesDataSource[] @@ -276,7 +272,6 @@ Accept wildcard characters: False ### -DataSourcePerformanceCounter The list of performance counter data source configurations. -To construct, see NOTES section for DATASOURCEPERFORMANCECOUNTER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPerfCounterDataSource[] @@ -292,7 +287,6 @@ Accept wildcard characters: False ### -DataSourcePlatformTelemetry The list of platform telemetry configurations -To construct, see NOTES section for DATASOURCEPLATFORMTELEMETRY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPlatformTelemetryDataSource[] @@ -308,7 +302,6 @@ Accept wildcard characters: False ### -DataSourcePrometheusForwarder The list of Prometheus forwarder data source configurations. -To construct, see NOTES section for DATASOURCEPROMETHEUSFORWARDER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPrometheusForwarderDataSource[] @@ -324,7 +317,6 @@ Accept wildcard characters: False ### -DataSourceSyslog The list of Syslog data source configurations. -To construct, see NOTES section for DATASOURCESYSLOG properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ISyslogDataSource[] @@ -340,7 +332,6 @@ Accept wildcard characters: False ### -DataSourceWindowsEventLog The list of Windows Event Log data source configurations. -To construct, see NOTES section for DATASOURCEWINDOWSEVENTLOG properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IWindowsEventLogDataSource[] @@ -356,7 +347,6 @@ Accept wildcard characters: False ### -DataSourceWindowsFirewallLog The list of Windows Firewall logs source configurations. -To construct, see NOTES section for DATASOURCEWINDOWSFIREWALLLOG properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IWindowsFirewallLogsDataSource[] @@ -419,7 +409,6 @@ Accept wildcard characters: False ### -DestinationEventHub List of Event Hubs destinations. -To construct, see NOTES section for DESTINATIONEVENTHUB properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IEventHubDestination[] @@ -435,7 +424,6 @@ Accept wildcard characters: False ### -DestinationEventHubsDirect List of Event Hubs Direct destinations. -To construct, see NOTES section for DESTINATIONEVENTHUBSDIRECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IEventHubDirectDestination[] @@ -451,7 +439,6 @@ Accept wildcard characters: False ### -DestinationLogAnalytic List of Log Analytics destinations. -To construct, see NOTES section for DESTINATIONLOGANALYTIC properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ILogAnalyticsDestination[] @@ -467,7 +454,6 @@ Accept wildcard characters: False ### -DestinationMonitoringAccount List of monitoring account destinations. -To construct, see NOTES section for DESTINATIONMONITORINGACCOUNT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IMonitoringAccountDestination[] @@ -483,7 +469,6 @@ Accept wildcard characters: False ### -DestinationStorageAccount List of storage accounts destinations. -To construct, see NOTES section for DESTINATIONSTORAGEACCOUNT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageBlobDestination[] @@ -500,7 +485,6 @@ Accept wildcard characters: False ### -DestinationStorageBlobsDirect List of Storage Blob Direct destinations. To be used only for sending data directly to store from the agent. -To construct, see NOTES section for DESTINATIONSTORAGEBLOBSDIRECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageBlobDestination[] @@ -516,7 +500,6 @@ Accept wildcard characters: False ### -DestinationStorageTablesDirect List of Storage Table Direct destinations. -To construct, see NOTES section for DESTINATIONSTORAGETABLESDIRECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IStorageTableDestination[] @@ -547,7 +530,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity @@ -576,21 +558,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Location -The geo-location where the resource lives. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Name The name of the data collection rule. The name is case insensitive. diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRuleAssociation.md b/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRuleAssociation.md index b74a8e8bd72e..d73a48a4b8e5 100644 --- a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRuleAssociation.md +++ b/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRuleAssociation.md @@ -167,7 +167,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IDataCollectionRuleIdentity diff --git a/src/Monitor/DataCollectionRule.Autorest/test/loadEnv.ps1 b/src/Monitor/DataCollectionRule.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Monitor/DataCollectionRule.Autorest/test/loadEnv.ps1 +++ b/src/Monitor/DataCollectionRule.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/Monitor/DataCollectionRule.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Monitor/DataCollectionRule.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Monitor/DataCollectionRule.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/Monitor/DiagnosticSetting.Autorest/README.md b/src/Monitor/DiagnosticSetting.Autorest/README.md index 66b293d497f9..562e449ab291 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/README.md +++ b/src/Monitor/DiagnosticSetting.Autorest/README.md @@ -3,9 +3,6 @@ This directory contains the PowerShell module for the DiagnosticSetting service. --- -## Status -[![Az.DiagnosticSetting](https://img.shields.io/powershellgallery/v/Az.DiagnosticSetting.svg?style=flat-square&label=Az.DiagnosticSetting "Az.DiagnosticSetting")](https://www.powershellgallery.com/packages/Az.DiagnosticSetting/) - ## Info - Modifiable: yes - Generated: all diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSetting.md index 6da78fa0b10d..0974c7d158e7 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSetting.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSetting.md @@ -52,7 +52,8 @@ Get diagnostic settings under resource by name ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -125,18 +126,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[Id ]`: Resource identity path - - `[Name ]`: The name of the diagnostic setting. - - `[ResourceUri ]`: The identifier of the resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSettingCategory.md b/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSettingCategory.md index 8e1b17027f26..9d6f9da8977d 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSettingCategory.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSettingCategory.md @@ -45,7 +45,8 @@ List supported diagnostic setting categories for resource ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -118,18 +119,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[Id ]`: Resource identity path - - `[Name ]`: The name of the diagnostic setting. - - `[ResourceUri ]`: The identifier of the resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzEventCategory.md b/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzEventCategory.md index 1c8bd3c2cbd0..762cd607f535 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzEventCategory.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzEventCategory.md @@ -46,7 +46,8 @@ List event categories, these are also supported diagnostic setting categories fo ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -71,7 +72,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzSubscriptionDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzSubscriptionDiagnosticSetting.md index fc9169e25fce..275e43a4e57f 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzSubscriptionDiagnosticSetting.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzSubscriptionDiagnosticSetting.md @@ -52,7 +52,8 @@ Get diagnostic setting by name under current subscription ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -125,18 +126,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[Id ]`: Resource identity path - - `[Name ]`: The name of the diagnostic setting. - - `[ResourceUri ]`: The identifier of the resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSetting.md index 02e0d55d5af6..f298a888b955 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSetting.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSetting.md @@ -52,7 +52,8 @@ Create diagnostic setting for all supported categories ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -280,26 +281,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`LOG `: The list of logs settings. - - `Enabled `: a value indicating whether this log is enabled. - - `[Category ]`: Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation. - - `[CategoryGroup ]`: Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation. - - `[RetentionPolicyDay ]`: the number of days for the retention in days. A value of 0 will retain the events indefinitely. - - `[RetentionPolicyEnabled ]`: a value indicating whether the retention policy is enabled. - -`METRIC `: The list of metric settings. - - `Enabled `: a value indicating whether this category is enabled. - - `[Category ]`: Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation. - - `[RetentionPolicyDay ]`: the number of days for the retention in days. A value of 0 will retain the events indefinitely. - - `[RetentionPolicyEnabled ]`: a value indicating whether the retention policy is enabled. - - `[TimeGrain ]`: the timegrain of the metric in ISO8601 format. - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingLogSettingsObject.md b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingLogSettingsObject.md index 9ba56c67f39b..79bdfbdcdd90 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingLogSettingsObject.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingLogSettingsObject.md @@ -120,7 +120,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingMetricSettingsObject.md b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingMetricSettingsObject.md index 66349af1d6ec..f1ae5a1e3840 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingMetricSettingsObject.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingMetricSettingsObject.md @@ -120,7 +120,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md index 3e69220a672c..cfd8c0454dbe 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md @@ -87,7 +87,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzSubscriptionDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzSubscriptionDiagnosticSetting.md index ee85f2f612bd..95ac5acbb44a 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzSubscriptionDiagnosticSetting.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzSubscriptionDiagnosticSetting.md @@ -37,7 +37,8 @@ Create diagnostic setting for current subscription ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -232,17 +233,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`LOG `: The list of logs settings. - - `Enabled `: a value indicating whether this log is enabled. - - `[Category ]`: Name of a Subscription Diagnostic Log category for a resource type this setting is applied to. - - `[CategoryGroup ]`: Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to. - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzDiagnosticSetting.md index eaec5ae8d75c..d0bf60f2905b 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzDiagnosticSetting.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzDiagnosticSetting.md @@ -40,7 +40,8 @@ Remove DiagnosticSetting by name ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -159,18 +160,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[Id ]`: Resource identity path - - `[Name ]`: The name of the diagnostic setting. - - `[ResourceUri ]`: The identifier of the resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzSubscriptionDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzSubscriptionDiagnosticSetting.md index bc3feb4d2c43..152b4a4fc58a 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzSubscriptionDiagnosticSetting.md +++ b/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzSubscriptionDiagnosticSetting.md @@ -39,7 +39,8 @@ Remove diagnostic setting by name for current subscription ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -158,18 +159,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[Id ]`: Resource identity path - - `[Name ]`: The name of the diagnostic setting. - - `[ResourceUri ]`: The identifier of the resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/DiagnosticSetting.Autorest/test/loadEnv.ps1 b/src/Monitor/DiagnosticSetting.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Monitor/DiagnosticSetting.Autorest/test/loadEnv.ps1 +++ b/src/Monitor/DiagnosticSetting.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/Monitor/DiagnosticSetting.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Monitor/DiagnosticSetting.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Monitor/DiagnosticSetting.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/Monitor/MetricsData.Autorest/.gitattributes b/src/Monitor/MetricData.Autorest/.gitattributes similarity index 100% rename from src/Monitor/MetricsData.Autorest/.gitattributes rename to src/Monitor/MetricData.Autorest/.gitattributes diff --git a/src/Monitor/MetricsData.Autorest/.gitignore b/src/Monitor/MetricData.Autorest/.gitignore similarity index 100% rename from src/Monitor/MetricsData.Autorest/.gitignore rename to src/Monitor/MetricData.Autorest/.gitignore diff --git a/src/Monitor/MetricsData.Autorest/Az.Metric.psd1 b/src/Monitor/MetricData.Autorest/Az.Metricdata.psd1 similarity index 67% rename from src/Monitor/MetricsData.Autorest/Az.Metric.psd1 rename to src/Monitor/MetricData.Autorest/Az.Metricdata.psd1 index 854b23482e3c..2594487a5d7e 100644 --- a/src/Monitor/MetricsData.Autorest/Az.Metric.psd1 +++ b/src/Monitor/MetricData.Autorest/Az.Metricdata.psd1 @@ -1,20 +1,20 @@ @{ - GUID = '405fa9b2-77ec-4b07-8793-e29abba71a28' - RootModule = './Az.Metric.psm1' + GUID = '791e56df-fdca-4b46-9e58-7e4a7c4e8701' + RootModule = './Az.Metricdata.psm1' ModuleVersion = '0.1.0' CompatiblePSEditions = 'Core', 'Desktop' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' Copyright = 'Microsoft Corporation. All rights reserved.' - Description = 'Microsoft Azure PowerShell: Metric cmdlets' + Description = 'Microsoft Azure PowerShell: Metricdata cmdlets' PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' - RequiredAssemblies = './bin/Az.Metric.private.dll' - FormatsToProcess = './Az.Metric.format.ps1xml' + RequiredAssemblies = './bin/Az.Metricdata.private.dll' + FormatsToProcess = './Az.Metricdata.format.ps1xml' FunctionsToExport = 'Get-AzMetricsBatch' PrivateData = @{ PSData = @{ - Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Metric' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Metricdata' LicenseUri = 'https://aka.ms/azps-license' ProjectUri = 'https://github.com/Azure/azure-powershell' ReleaseNotes = '' diff --git a/src/Monitor/MetricsData.Autorest/README.md b/src/Monitor/MetricData.Autorest/README.md similarity index 83% rename from src/Monitor/MetricsData.Autorest/README.md rename to src/Monitor/MetricData.Autorest/README.md index b6567f444c89..4ce5943ba0d4 100644 --- a/src/Monitor/MetricsData.Autorest/README.md +++ b/src/Monitor/MetricData.Autorest/README.md @@ -1,11 +1,8 @@ -# Az.Metric -This directory contains the PowerShell module for the Metric service. +# Az.Metricdata +This directory contains the PowerShell module for the Metricdata service. --- -## Status -[![Az.Metric](https://img.shields.io/powershellgallery/v/Az.Metric.svg?style=flat-square&label=Az.Metric "Az.Metric")](https://www.powershellgallery.com/packages/Az.Metric/) - ## Info - Modifiable: yes - Generated: all @@ -23,7 +20,7 @@ This module was primarily generated via [AutoRest](https://github.com/Azure/auto AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. ## Development -For information on how to develop for `Az.Metric`, see [how-to.md](how-to.md). +For information on how to develop for `Az.Metricdata`, see [how-to.md](how-to.md). ### AutoRest Configuration @@ -40,10 +37,10 @@ input-file: - $(repo)/specification/monitor/data-plane/Microsoft.Insights/stable/2023-10-01/metricBatch.json root-module-name: $(prefix).Monitor -title: Metric -module-name: Az.Metric +title: Metricdata module-version: 0.1.0 subject-prefix: "" +namespace: Microsoft.Azure.PowerShell.Cmdlets.Metric directive: - where: diff --git a/src/Monitor/MetricsData.Autorest/custom/README.md b/src/Monitor/MetricData.Autorest/custom/README.md similarity index 55% rename from src/Monitor/MetricsData.Autorest/custom/README.md rename to src/Monitor/MetricData.Autorest/custom/README.md index 6cefe17280c0..56a66748426b 100644 --- a/src/Monitor/MetricsData.Autorest/custom/README.md +++ b/src/Monitor/MetricData.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.Metric` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.Metric.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.Metricdata` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.Metricdata.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -8,11 +8,11 @@ This directory contains custom implementation for non-generated cmdlets for the - Packaged: yes ## Details -For `Az.Metric` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. +For `Az.Metricdata` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. -For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.Metric.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. +For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.Metricdata.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. -For script cmdlets, these are loaded via the `Az.Metric.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. +For script cmdlets, these are loaded via the `Az.Metricdata.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. @@ -27,15 +27,15 @@ The easiest way currently to start developing custom cmdlets is to copy an exist - ProxyCredential - ProxyUseDefaultCredentials -These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.Metric`. For C#, follow the usage seen in the `ProcessRecordAsync` method. +These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.Metricdata`. For C#, follow the usage seen in the `ProcessRecordAsync` method. ### Attributes For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.Metric.DescriptionAttribute` - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. - `Microsoft.Azure.PowerShell.Cmdlets.Metric.DoNotExportAttribute` - - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Metric`. + - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Metricdata`. - `Microsoft.Azure.PowerShell.Cmdlets.Metric.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Metric`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Metricdata`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.Metric.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/Monitor/MetricsData.Autorest/docs/Az.Metric.md b/src/Monitor/MetricData.Autorest/docs/Az.Metricdata.md similarity index 54% rename from src/Monitor/MetricsData.Autorest/docs/Az.Metric.md rename to src/Monitor/MetricData.Autorest/docs/Az.Metricdata.md index 20384c867d9c..4046e043d40a 100644 --- a/src/Monitor/MetricsData.Autorest/docs/Az.Metric.md +++ b/src/Monitor/MetricData.Autorest/docs/Az.Metricdata.md @@ -1,16 +1,16 @@ --- -Module Name: Az.Metric -Module Guid: 405fa9b2-77ec-4b07-8793-e29abba71a28 -Download Help Link: https://learn.microsoft.com/powershell/module/az.metric +Module Name: Az.Metricdata +Module Guid: 791e56df-fdca-4b46-9e58-7e4a7c4e8701 +Download Help Link: https://learn.microsoft.com/powershell/module/az.metricdata Help Version: 1.0.0.0 Locale: en-US --- -# Az.Metric Module +# Az.Metricdata Module ## Description -Microsoft Azure PowerShell: Metric cmdlets +Microsoft Azure PowerShell: Metricdata cmdlets -## Az.Metric Cmdlets +## Az.Metricdata Cmdlets ### [Get-AzMetricsBatch](Get-AzMetricsBatch.md) Lists the metric values for multiple resources. diff --git a/src/Monitor/MetricsData.Autorest/docs/Get-AzMetricsBatch.md b/src/Monitor/MetricData.Autorest/docs/Get-AzMetricsBatch.md similarity index 98% rename from src/Monitor/MetricsData.Autorest/docs/Get-AzMetricsBatch.md rename to src/Monitor/MetricData.Autorest/docs/Get-AzMetricsBatch.md index 6bb983649d38..affa39e5234f 100644 --- a/src/Monitor/MetricsData.Autorest/docs/Get-AzMetricsBatch.md +++ b/src/Monitor/MetricData.Autorest/docs/Get-AzMetricsBatch.md @@ -22,9 +22,9 @@ Get-AzMetricsBatch -Endpoint -Name > -Namespace [ ### BatchViaIdentityExpanded ``` -Get-AzMetricsBatch -Endpoint -InputObject -Name > -Namespace - [-Aggregation ] [-EndTime ] [-Filter ] [-Interval ] [-Orderby ] - [-Rollupby ] [-StartTime ] [-Top ] [-ResourceId ] +Get-AzMetricsBatch -Endpoint -InputObject -Name > + -Namespace [-Aggregation ] [-EndTime ] [-Filter ] [-Interval ] + [-Orderby ] [-Rollupby ] [-StartTime ] [-Top ] [-ResourceId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -665,10 +665,9 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricIdentity +Type: Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricdataIdentity Parameter Sets: BatchViaIdentityExpanded Aliases: @@ -702,7 +701,7 @@ Accept wildcard characters: False The names of the metrics (comma separated) to retrieve. ```yaml -Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: MetricName @@ -863,7 +862,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricIdentity +### Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricdataIdentity ## OUTPUTS diff --git a/src/Monitor/MetricData.Autorest/docs/README.md b/src/Monitor/MetricData.Autorest/docs/README.md new file mode 100644 index 000000000000..19f7790a614e --- /dev/null +++ b/src/Monitor/MetricData.Autorest/docs/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.Metricdata` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.Metricdata` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/Monitor/MetricsData.Autorest/examples/Get-AzMetricsBatch.md b/src/Monitor/MetricData.Autorest/examples/Get-AzMetricsBatch.md similarity index 100% rename from src/Monitor/MetricsData.Autorest/examples/Get-AzMetricsBatch.md rename to src/Monitor/MetricData.Autorest/examples/Get-AzMetricsBatch.md diff --git a/src/Monitor/MetricsData.Autorest/how-to.md b/src/Monitor/MetricData.Autorest/how-to.md similarity index 80% rename from src/Monitor/MetricsData.Autorest/how-to.md rename to src/Monitor/MetricData.Autorest/how-to.md index 3dc6477538ca..0a0e13bb572d 100644 --- a/src/Monitor/MetricsData.Autorest/how-to.md +++ b/src/Monitor/MetricData.Autorest/how-to.md @@ -1,7 +1,7 @@ # How-To -This document describes how to develop for `Az.Metric`. +This document describes how to develop for `Az.Metricdata`. -## Building `Az.Metric` +## Building `Az.Metricdata` To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [README.md](exports/README.md) in the `exports` folder. ## Creating custom cmdlets @@ -10,18 +10,18 @@ To add cmdlets that were not generated by the REST specification, use the `custo ## Generating documentation To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [README.md](examples/README.md) in the `examples` folder. To read more about documentation, look at the [README.md](docs/README.md) in the `docs` folder. -## Testing `Az.Metric` +## Testing `Az.Metricdata` To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. -## Packing `Az.Metric` -To pack `Az.Metric` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://learn.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. +## Packing `Az.Metricdata` +To pack `Az.Metricdata` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://learn.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. ## Module Script Details -There are multiple scripts created for performing different actions for developing `Az.Metric`. +There are multiple scripts created for performing different actions for developing `Az.Metricdata`. - `build-module.ps1` - - Builds the module DLL (`./bin/Az.Metric.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.Metric.psd1` with Azure profile information. + - Builds the module DLL (`./bin/Az.Metricdata.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.Metricdata.psd1` with Azure profile information. - **Parameters**: [`Switch` parameters] - - `-Run`: After building, creates an isolated PowerShell session and loads `Az.Metric`. + - `-Run`: After building, creates an isolated PowerShell session and loads `Az.Metricdata`. - `-Test`: After building, runs the `Pester` tests defined in the `test` folder. - `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder. - `-Pack`: After building, packages the module into a `.nupkg`. @@ -30,7 +30,7 @@ There are multiple scripts created for performing different actions for developi - `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process. - `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process. - `run-module.ps1` - - Creates an isolated PowerShell session and loads `Az.Metric` into the session. + - Creates an isolated PowerShell session and loads `Az.Metricdata` into the session. - Same as `-Run` in `build-module.ps1`. - **Parameters**: [`Switch` parameters] - `-Code`: Opens a VSCode window with the module's directory. diff --git a/src/Monitor/MetricsData.Autorest/license.txt b/src/Monitor/MetricData.Autorest/license.txt similarity index 100% rename from src/Monitor/MetricsData.Autorest/license.txt rename to src/Monitor/MetricData.Autorest/license.txt diff --git a/src/Monitor/MetricsData.Autorest/resources/README.md b/src/Monitor/MetricData.Autorest/resources/README.md similarity index 100% rename from src/Monitor/MetricsData.Autorest/resources/README.md rename to src/Monitor/MetricData.Autorest/resources/README.md diff --git a/src/Monitor/MetricsData.Autorest/test/Get-AzMetricsBatch.Recording.json b/src/Monitor/MetricData.Autorest/test/Get-AzMetricsBatch.Recording.json similarity index 100% rename from src/Monitor/MetricsData.Autorest/test/Get-AzMetricsBatch.Recording.json rename to src/Monitor/MetricData.Autorest/test/Get-AzMetricsBatch.Recording.json diff --git a/src/Monitor/MetricsData.Autorest/test/Get-AzMetricsBatch.Tests.ps1 b/src/Monitor/MetricData.Autorest/test/Get-AzMetricsBatch.Tests.ps1 similarity index 100% rename from src/Monitor/MetricsData.Autorest/test/Get-AzMetricsBatch.Tests.ps1 rename to src/Monitor/MetricData.Autorest/test/Get-AzMetricsBatch.Tests.ps1 diff --git a/src/Monitor/MetricsData.Autorest/test/README.md b/src/Monitor/MetricData.Autorest/test/README.md similarity index 100% rename from src/Monitor/MetricsData.Autorest/test/README.md rename to src/Monitor/MetricData.Autorest/test/README.md diff --git a/src/Monitor/MetricsData.Autorest/test/env.json b/src/Monitor/MetricData.Autorest/test/env.json similarity index 100% rename from src/Monitor/MetricsData.Autorest/test/env.json rename to src/Monitor/MetricData.Autorest/test/env.json diff --git a/src/Monitor/MetricsData.Autorest/test/loadEnv.ps1 b/src/Monitor/MetricData.Autorest/test/loadEnv.ps1 similarity index 93% rename from src/Monitor/MetricsData.Autorest/test/loadEnv.ps1 rename to src/Monitor/MetricData.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Monitor/MetricsData.Autorest/test/loadEnv.ps1 +++ b/src/Monitor/MetricData.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/Monitor/MetricsData.Autorest/test/utils.ps1 b/src/Monitor/MetricData.Autorest/test/utils.ps1 similarity index 100% rename from src/Monitor/MetricsData.Autorest/test/utils.ps1 rename to src/Monitor/MetricData.Autorest/test/utils.ps1 diff --git a/src/Monitor/MetricData.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Monitor/MetricData.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Monitor/MetricData.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/Monitor/MetricsData.Autorest/utils/Unprotect-SecureString.ps1 b/src/Monitor/MetricData.Autorest/utils/Unprotect-SecureString.ps1 similarity index 100% rename from src/Monitor/MetricsData.Autorest/utils/Unprotect-SecureString.ps1 rename to src/Monitor/MetricData.Autorest/utils/Unprotect-SecureString.ps1 diff --git a/src/Monitor/MetricsData.Autorest/docs/README.md b/src/Monitor/MetricsData.Autorest/docs/README.md deleted file mode 100644 index e3ad1c875bda..000000000000 --- a/src/Monitor/MetricsData.Autorest/docs/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Docs -This directory contains the documentation of the cmdlets for the `Az.Metric` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. - -## Info -- Modifiable: no -- Generated: all -- Committed: yes -- Packaged: yes - -## Details -The process of documentation generation loads `Az.Metric` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/Monitor/MonitorWorkspace.Autorest/README.md b/src/Monitor/MonitorWorkspace.Autorest/README.md index 4a9222b504c0..6950b2ec9631 100644 --- a/src/Monitor/MonitorWorkspace.Autorest/README.md +++ b/src/Monitor/MonitorWorkspace.Autorest/README.md @@ -3,9 +3,6 @@ This directory contains the PowerShell module for the MonitorWorkspace service. --- -## Status -[![Az.MonitorWorkspace](https://img.shields.io/powershellgallery/v/Az.MonitorWorkspace.svg?style=flat-square&label=Az.MonitorWorkspace "Az.MonitorWorkspace")](https://www.powershellgallery.com/packages/Az.MonitorWorkspace/) - ## Info - Modifiable: yes - Generated: all diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/Get-AzMonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/docs/Get-AzMonitorWorkspace.md index dc3218dec679..46d378f16ec9 100644 --- a/src/Monitor/MonitorWorkspace.Autorest/docs/Get-AzMonitorWorkspace.md +++ b/src/Monitor/MonitorWorkspace.Autorest/docs/Get-AzMonitorWorkspace.md @@ -173,18 +173,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AzureMonitorWorkspaceName ]`: The name of the Azure Monitor workspace. The name is case insensitive - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/New-AzMonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/docs/New-AzMonitorWorkspace.md index 02dc02d97e5d..705592d5626f 100644 --- a/src/Monitor/MonitorWorkspace.Autorest/docs/New-AzMonitorWorkspace.md +++ b/src/Monitor/MonitorWorkspace.Autorest/docs/New-AzMonitorWorkspace.md @@ -198,18 +198,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AzureMonitorWorkspaceName ]`: The name of the Azure Monitor workspace. The name is case insensitive - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/Remove-AzMonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/docs/Remove-AzMonitorWorkspace.md index 67dc086e8372..b91551dafe0d 100644 --- a/src/Monitor/MonitorWorkspace.Autorest/docs/Remove-AzMonitorWorkspace.md +++ b/src/Monitor/MonitorWorkspace.Autorest/docs/Remove-AzMonitorWorkspace.md @@ -213,18 +213,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AzureMonitorWorkspaceName ]`: The name of the Azure Monitor workspace. The name is case insensitive - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/Update-AzMonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/docs/Update-AzMonitorWorkspace.md index 31961df16c66..14535e5d6787 100644 --- a/src/Monitor/MonitorWorkspace.Autorest/docs/Update-AzMonitorWorkspace.md +++ b/src/Monitor/MonitorWorkspace.Autorest/docs/Update-AzMonitorWorkspace.md @@ -195,18 +195,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AzureMonitorWorkspaceName ]`: The name of the Azure Monitor workspace. The name is case insensitive - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/MonitorWorkspace.Autorest/test/loadEnv.ps1 b/src/Monitor/MonitorWorkspace.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Monitor/MonitorWorkspace.Autorest/test/loadEnv.ps1 +++ b/src/Monitor/MonitorWorkspace.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/Monitor/MonitorWorkspace.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Monitor/MonitorWorkspace.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Monitor/MonitorWorkspace.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/Monitor/ScheduledQueryRule.Autorest/README.md b/src/Monitor/ScheduledQueryRule.Autorest/README.md index dc1fd6e5ccf9..2ec0915b002e 100644 --- a/src/Monitor/ScheduledQueryRule.Autorest/README.md +++ b/src/Monitor/ScheduledQueryRule.Autorest/README.md @@ -3,9 +3,6 @@ This directory contains the PowerShell module for the ScheduledQueryRule service. --- -## Status -[![Az.ScheduledQueryRule](https://img.shields.io/powershellgallery/v/Az.ScheduledQueryRule.svg?style=flat-square&label=Az.ScheduledQueryRule "Az.ScheduledQueryRule")](https://www.powershellgallery.com/packages/Az.ScheduledQueryRule/) - ## Info - Modifiable: yes - Generated: all diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/Get-AzScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/docs/Get-AzScheduledQueryRule.md index 0629d87c37ea..5f4abf2ea49f 100644 --- a/src/Monitor/ScheduledQueryRule.Autorest/docs/Get-AzScheduledQueryRule.md +++ b/src/Monitor/ScheduledQueryRule.Autorest/docs/Get-AzScheduledQueryRule.md @@ -64,7 +64,8 @@ Get scheduled query rule by name ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -153,18 +154,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[RuleName ]`: The name of the rule. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRule.md index fe3455e568cb..9978ffb29bb2 100644 --- a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRule.md +++ b/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRule.md @@ -120,7 +120,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -445,27 +446,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CRITERIONALLOF `: A list of conditions to evaluate against the specified scopes - - `[Dimension ]`: List of Dimensions conditions - - `Name `: Name of the dimension - - `Operator `: Operator for dimension values - - `Value `: List of dimension values - - `[FailingPeriodMinFailingPeriodsToAlert ]`: The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1 - - `[FailingPeriodNumberOfEvaluationPeriod ]`: The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1 - - `[MetricMeasureColumn ]`: The column containing the metric measure number. Relevant only for rules of the kind LogAlert. - - `[MetricName ]`: The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric. - - `[Operator ]`: The criteria operator. Relevant and required only for rules of the kind LogAlert. - - `[Query ]`: Log query alert - - `[ResourceIdColumn ]`: The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert. - - `[Threshold ]`: the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert. - - `[TimeAggregation ]`: Aggregation type. Relevant and required only for rules of the kind LogAlert. - ## RELATED LINKS diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleConditionObject.md b/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleConditionObject.md index fcd0b54ce3be..96bbdfb389fc 100644 --- a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleConditionObject.md +++ b/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleConditionObject.md @@ -207,17 +207,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`DIMENSION `: List of Dimensions conditions. - - `Name `: Name of the dimension - - `Operator `: Operator for dimension values - - `Value `: List of dimension values - ## RELATED LINKS diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleDimensionObject.md b/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleDimensionObject.md index ebfaa9a34225..0a94ac9942f3 100644 --- a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleDimensionObject.md +++ b/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleDimensionObject.md @@ -87,7 +87,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/Remove-AzScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/docs/Remove-AzScheduledQueryRule.md index 3dc8dbb3f8a9..d31f20e60b98 100644 --- a/src/Monitor/ScheduledQueryRule.Autorest/docs/Remove-AzScheduledQueryRule.md +++ b/src/Monitor/ScheduledQueryRule.Autorest/docs/Remove-AzScheduledQueryRule.md @@ -39,7 +39,8 @@ Remove scheduled query rule ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -174,18 +175,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[RuleName ]`: The name of the rule. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/Update-AzScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/docs/Update-AzScheduledQueryRule.md index 7b2ca1037b91..6de3d5d704b0 100644 --- a/src/Monitor/ScheduledQueryRule.Autorest/docs/Update-AzScheduledQueryRule.md +++ b/src/Monitor/ScheduledQueryRule.Autorest/docs/Update-AzScheduledQueryRule.md @@ -130,7 +130,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -442,33 +443,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CRITERIONALLOF `: A list of conditions to evaluate against the specified scopes - - `[Dimension ]`: List of Dimensions conditions - - `Name `: Name of the dimension - - `Operator `: Operator for dimension values - - `Value `: List of dimension values - - `[FailingPeriodMinFailingPeriodsToAlert ]`: The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1 - - `[FailingPeriodNumberOfEvaluationPeriod ]`: The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1 - - `[MetricMeasureColumn ]`: The column containing the metric measure number. Relevant only for rules of the kind LogAlert. - - `[MetricName ]`: The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric. - - `[Operator ]`: The criteria operator. Relevant and required only for rules of the kind LogAlert. - - `[Query ]`: Log query alert - - `[ResourceIdColumn ]`: The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert. - - `[Threshold ]`: the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert. - - `[TimeAggregation ]`: Aggregation type. Relevant and required only for rules of the kind LogAlert. - -`INPUTOBJECT `: Identity Parameter - - `[Id ]`: Resource identity path - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[RuleName ]`: The name of the rule. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Monitor/ScheduledQueryRule.Autorest/test/loadEnv.ps1 b/src/Monitor/ScheduledQueryRule.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Monitor/ScheduledQueryRule.Autorest/test/loadEnv.ps1 +++ b/src/Monitor/ScheduledQueryRule.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/Monitor/ScheduledQueryRule.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Monitor/ScheduledQueryRule.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Monitor/ScheduledQueryRule.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv new file mode 100644 index 000000000000..42ec0f595280 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv @@ -0,0 +1,10 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.Monitor","Update-AzActionGroup","Update-AzActionGroup","0","2000","The cmdlet 'Update-AzActionGroup' no longer supports the parameter 'Location' and no alias was found for the original parameter name.","Add the parameter 'Location' back to the cmdlet 'Update-AzActionGroup', or add an alias to the original parameter name." +"Az.Monitor","Update-AzActionGroup","Update-AzActionGroup","0","1050","The parameter set 'UpdateExpanded' for cmdlet 'Update-AzActionGroup' has been removed.","Add parameter set 'UpdateExpanded' back to cmdlet 'Update-AzActionGroup'." +"Az.Monitor","Update-AzActionGroup","Update-AzActionGroup","0","1050","The parameter set 'UpdateViaIdentityExpanded' for cmdlet 'Update-AzActionGroup' has been removed.","Add parameter set 'UpdateViaIdentityExpanded' back to cmdlet 'Update-AzActionGroup'." +"Az.Monitor","Update-AzActionGroup","Update-AzActionGroup","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Update-AzActionGroup' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Update-AzActionGroup'." +"Az.Monitor","Update-AzDataCollectionRule","Update-AzDataCollectionRule","0","2000","The cmdlet 'Update-AzDataCollectionRule' no longer supports the parameter 'Location' and no alias was found for the original parameter name.","Add the parameter 'Location' back to the cmdlet 'Update-AzDataCollectionRule', or add an alias to the original parameter name." +"Az.Monitor","Update-AzDataCollectionRule","Update-AzDataCollectionRule","0","1050","The parameter set 'UpdateExpanded' for cmdlet 'Update-AzDataCollectionRule' has been removed.","Add parameter set 'UpdateExpanded' back to cmdlet 'Update-AzDataCollectionRule'." +"Az.Monitor","Update-AzDataCollectionRule","Update-AzDataCollectionRule","0","1050","The parameter set 'UpdateViaIdentityExpanded' for cmdlet 'Update-AzDataCollectionRule' has been removed.","Add parameter set 'UpdateViaIdentityExpanded' back to cmdlet 'Update-AzDataCollectionRule'." +"Az.Monitor","Update-AzDataCollectionRule","Update-AzDataCollectionRule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Update-AzDataCollectionRule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Update-AzDataCollectionRule'." +"Az.Monitor","Get-AzMetricsBatch","Get-AzMetricsBatch","0","2020","The cmdlet 'Get-AzMetricsBatch' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricIdentity' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricIdentity'."