Граф коммитов

22252 Коммитов

Автор SHA1 Сообщение Дата
Vincent Dai ae44bad385
Update telemetry data to add moniker of the detected properties (#430)
* Add new telemetry fields CrossCompanyCorrelatingId and Moniker

* Remove CrossCompanyCorrelatingId due to it may cause telemetry data too large
2024-10-20 17:21:33 +08:00
Yeming Liu 4d7fb620d3
Update "Contributing" section README.md (#431) 2024-10-10 22:24:41 +08:00
Yan Xu 061407ff9f
replace invalid char in customized UserAgent (#429) 2024-08-23 14:28:22 +08:00
Yan Xu 644538a585
Set UserAgent for ARM telemetry (#428)
* set UserAgent for ARM telemetry

* update function to be private
2024-08-23 11:05:48 +08:00
Yan Xu 55e0739f94
set subscription id and tenant id in telemetry if it's null (#427)
* set subscription id and tenant id in telemetry if it's null

* set telemetry sub id and tenant id to AzureRMCmdlet.EndProcessing

* remove RequireDefaultContext
2024-08-22 09:56:28 +08:00
lijinpei2008 e57ee15055
Remove PSStyle if terminal does not support escape sequence (#426)
* update PSStyle.cs

* update AzurePSCmdlet.cs

* update PSStyle.cs

* update PSStyle.cs: private parameter
2024-08-06 14:12:23 +08:00
Vincent Dai ccb149a3bd
Add new properties in the IOutputSanitizer (#425) 2024-07-23 09:02:30 +08:00
Beisi Zhou c4f1529d1e
Change ConfigMetrics from Array to Dictionary (#422)
* Change ConfigMetrics from array to dictionary

* add telemetry key for config
2024-06-18 15:38:25 +08:00
Beisi Zhou f44d051c2a
Add ConfigInfo Telemetry (#420)
* first version

* Update src/Authentication.Abstractions/Authentication.Abstractions.csproj

* refine code

* resolve comments

* revert csproj

* polish

* rename to ConfigMetrics

* revert src/Authentication.Abstractions/Authentication.Abstractions.csproj

* Update src/Authentication.Abstractions/Authentication.Abstractions.csproj

* wip
2024-06-15 01:16:47 +08:00
v-vprasannak 7be70efcdb
Added Communication Service Email endpoint (#419) 2024-05-24 21:50:09 +08:00
Yeming Liu aa27a10fe9
Create code of conduct (#418) 2024-05-21 11:05:38 +08:00
andrewpethel baa2eedfe1
adding prop and condition for OperationalInsightsEndpointResourceId (#414)
* adding prop and condition for OperationalInsightsEndpointResourceId

* removing unnecessary conditional

* removing redundant definition

* simplifying endpoint value

---------

Co-authored-by: Ryan Pethel 🛴 <anpethel@microsoft.com>
2024-05-09 14:18:47 +08:00
Beisi Zhou 4a093813bc
add more psstyle (#417) 2024-04-29 18:18:27 +08:00
Yabo Hu 2fc315f395
optin error record config (#416) 2024-04-26 14:21:13 +08:00
Vincent Dai cf91f5b919
Fix the issue that string is returned instead of object. One more message is added to accommodate this situation. (#415) 2024-04-11 14:48:06 +08:00
Vincent Dai 1c5829b510
Added sanitize duration in the debug message and removed in EndProcessing. (#413) 2024-03-19 19:54:20 +08:00
Vincent Dai 0b6cb598a4
Impelement secrets detection for Az modules (#412)
* Impelement secrets detection for Az modules

* Move some implementation from common to Az.Accounts and revise/rename ISanitizerSettings interface.

* Rename telemetry property name

* Make DefaultProviderResolver public due to reference needed in Az.Accounts

* Add IgnoredProperties in ISanitizerService to filter out special properties that may cause performance concern like lazy load properties.

* Return null for AzurePSSanitizer when AzureSession is not properly initialized

* Skip indexed properties in the object traverse

* Update sanitizer and move providers out to Az.Accounts
2024-02-28 13:20:00 +08:00
Beisi Zhou 2cd3afb61c
Add WriteInformation Method in AzurePSCmdlet (#408)
* add writeinformation method

* polish

* fix

* fix

* add WriteHighlightedInformation function

* remove hardcoded ansicode color theme

* polish

* suppress warning as error for vuluneribility

* Revert style change for intercept survey and add predefine ansi color

* Rename WriteStringInformation

* polish code

* fix comments

* Update src/Common/AzurePSCmdlet.cs

* Update src/Common/AzurePSCmdlet.cs
2024-01-29 13:38:25 +08:00
Yabo Hu 037a53ac5b
fix null reference in breaking change attribute helper (#411) 2024-01-24 15:16:01 +08:00
Yabo Hu e1f1fe75ad
fix null reference in GetAllBreakingChangeAttributesInType (#410) 2024-01-23 10:15:23 +08:00
Jin Lei 0309635e82
Enable Retrieve Auxiliary Auth Header by tenant ID (#409)
* Enable TenantId to Retrieve Auxiliary Auth Header

To Fix https://github.com/Azure/azure-powershell/issues/17407

* Update src/ResourceManager/Version2016_09_01/AzureRMCmdlet.cs

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>

* Update src/ResourceManager/Version2016_09_01/AzureRMCmdlet.cs

Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Address review comments

* Fix test error

---------

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>
2024-01-22 17:42:49 +08:00
Yabo Hu ceb2c410dc
support breaking change attribute for dynamic parameters (#407)
* get breaking change attribute for all parameters instead of static parameters only, in this way breaking change attribute for dynamic parameters are able to be displayed

* delete unused method
2023-11-30 12:24:01 +08:00
Yan Xu b1b6e8066f
Add module name to breaking changes (#405)
* Add module name to breaking changes

* format and refactor

* update from to in
2023-09-19 15:19:22 +08:00
Jin Lei 6d459c22cb
Upgrade ApplicationInsights version to 2.18.0 to be compatible with PS core 7.2.0 (#404) 2023-09-18 10:05:28 +08:00
Jin Lei 935126b6be
Copy Directory from AzureTenant and Type from AzureEnvironment in DeepCopy of Azure Context (#402)
* Define and implement DeepCloneable interface for Azure* class such as AzureContext

1. Define and implementation `IDeepCloneable` interface
2. Remove unused codes in `DefaultProfile`

* Address the review comments

* Address review comments
2023-08-16 15:54:05 +08:00
Yabo Hu 9b5f8b90ae
[Config] add config to disable write error to file system (#403)
* disable error records persistence

* split RecordDebugMessage and FlushDebugMessages

* invoke RecordDebugMessages only when write error and throw terminating error

* combine if condition in a bool function

* Uppercase first letter for method name
2023-08-11 14:57:20 +08:00
Yan Xu 7984785fe9
check null reference cases for version upgrade notification (#401) 2023-07-27 22:38:43 +08:00
Yan Xu dae2d4660c
Support in-tool notification for version upgrade (#396)
* support version upgrade notification

* update the migration guides link

* remove check by user

* update warning message

* move warning logic to UpgradeNotificationHelper

* update string match and newline character

* rename FrequencyService methods

---------

Co-authored-by: NanxiangLiu <33285578+Nickcandy@users.noreply.github.com>
2023-07-24 20:54:28 +08:00
Beisi Zhou 4956ccdc93
Update AzurePSCmdlet.cs (#400) 2023-07-24 15:47:59 +08:00
Beisi Zhou 2921932104
Fixed bug about access level in Resources.Designer.cs (#399)
* Change Resources.Designer.cs from internal to public

* Keep same behavior as before
2023-07-21 11:28:50 +08:00
Beisi Zhou 48c247f3e7
Change the default warning message of CmdletPreviewAttribute and allow setting ETA (#395)
* Change the default warning message of CmdletPreviewAttribute and allow setting ETA

* polish

* add frequency control

* polish

* polish

* change date format to short date in breaking change attribute

* polish
2023-07-20 15:00:07 +08:00
Jin Lei dfe6dba549
Fix concurrent issue when Connect-AzAccount (#393)
* Fix concurrent issue when Connect-AzAccount

* Add empty GalleryEndpoint case to environment test

* Address review comments
2023-06-26 11:27:07 +08:00
thegreatzhang 210dd3d259
Breaking change attributes with target Az version (#394)
* deprecate methods to ensure version as a must (#383)

Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>

* Hongtu/version must (#384)

* deprecate methods to ensure version as a must

* add GetAttributeSpecificVersion method in base breaking change attribute

---------

Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>

* Hongtu/version must (#386)

* deprecate methods to ensure version as a must

* add GetAttributeSpecificVersion method in base breaking change attribute

* change parameter type from string to Version

---------

Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>

* create new attributes with version instead of modifying existing attributes

* add resource of BreakingChangesAttributesInEffectByAzVersion

* Hongtu/attribute0518 (#387)

* Update Newtonsoft.Json from 10.0.3 to 13.0.2 (#385)

* create new attributes with version instead of modifying existing attributes

* add resource of BreakingChangesAttributesInEffectByAzVersion

---------

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>

* change internal to public

* remove az version to string

* Hongtu/attribute0518 (#388)

* Update Newtonsoft.Json from 10.0.3 to 13.0.2 (#385)

* create new attributes with version instead of modifying existing attributes

* add resource of BreakingChangesAttributesInEffectByAzVersion

* change internal to public

* remove az version to string

---------

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>

* change internal to public

* Hongtu/attribute0518 (#389)

* Update Newtonsoft.Json from 10.0.3 to 13.0.2 (#385)

* create new attributes with version instead of modifying existing attributes

* add resource of BreakingChangesAttributesInEffectByAzVersion

* change internal to public

* remove az version to string

* change internal to public

---------

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>

* add az version output when cmdlets are obsolate

* Hongtu/attribute0518 (#391)

* Update Newtonsoft.Json from 10.0.3 to 13.0.2 (#385)

* create new attributes with version instead of modifying existing attributes

* add resource of BreakingChangesAttributesInEffectByAzVersion

* change internal to public

* remove az version to string

* change internal to public

* add az version output when cmdlets are obsolate

---------

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>

* add \n to terminal warning output of az version

* change resources.resx

* change back common.csproj

* change to public resources

* change generic

* remove azversion from old attribute

* change obsolete to class level

* add comments

---------

Co-authored-by: xtR0d666 <69706194+xtR0d666@users.noreply.github.com>
Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>
Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
2023-06-21 15:30:03 +08:00
Yeming Liu 8b55763cc5
Update Newtonsoft.Json from 10.0.3 to 13.0.2 (#385) 2023-05-12 17:20:09 +08:00
Damien Caro dc4939e75b
Removed trailing dot in survey message (#379)
Removed the trailing dot in survey message to address URL wrapping issue in CloudShell

Co-authored-by: NanxiangLiu <33285578+Nickcandy@users.noreply.github.com>
2023-04-13 17:32:43 +08:00
Jin Lei dddabb8568
Fix the incorrect AzureSynapseAnalyticsEndpointResourceId of USGovernment (#380) 2023-04-13 13:46:05 +08:00
Jin Lei a6dba96f47
Fix SynapseAnalyticsEndpointResourceId error (#378) 2023-03-10 09:46:20 +08:00
Jin Lei 96c60bf28a
Missing DefaultArmMetaDataEndpoint assignment (#377) 2023-02-28 15:21:01 +08:00
Yeming Liu aee7b6bd49
Interface for collection parameter values (#376)
* interface for collecting parameters

* API: Format parameters for telemetry
2023-02-27 16:08:37 +08:00
Jin Lei aaf9ff8913
Support ArmMetadata with API version 2022-09-01 (#374)
* Support ArmMetadata with API version 2022-09-01

The new format of ArmMetadata found here
https://management.azure.com/metadata/endpoints?api-version=2022-09-01

* Address review comments

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>

* Update src/Authentication.Abstractions/AzureEnvironment.cs

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>

---------

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
2023-02-27 13:33:03 +08:00
Yeming Liu 6310f19aed
Add DisplayRegionIdentified to client side telemetry (#375) 2023-02-23 12:51:55 +08:00
Yeming Liu 4aedaa45e2
Interface for recommendation service (#373)
* Interface for recommendation service

* Make Process abstract
2023-02-22 16:58:12 +08:00
Xiaogang 24150dd60c
Use $PSVersionTable.PSVersion for PowerShell Version (#372)
Currently, we use $Host.runspace.version for PowerShell version. It is the PowerShell engine version, and should be same as the $psversiontable.psversion, but runspace will be null in some cases for example when developers directly use PowerShell SDK as below.

```
# $sp = [runspaceFactory]::CreateRunspace() # Create an space with default host
# $ps = [powershell]::create() # create an powershell object
# $ps.Runspace = $sp
# $sp.Open()
# $ps.AddScript{Get-host}.Invoke() # runspace is null for such an case
```
2023-02-21 09:33:16 +08:00
NanxiangLiu f458acf254
Add endpoint resource Id for container registry (#370)
* add endpoint uri for containerregistry

* add resource id
2023-01-03 10:45:18 +08:00
Vincent Dai cda7ab8855
Fixed issue when EnableTestCoverage was not registered in the Release build (#368) 2022-11-30 13:29:13 +08:00
Jin Lei 1a1a911fac
Added KeyStoreFile to AzureSession Interface (#367)
Fix https://github.com/Azure/azure-powershell-common/pull/363
2022-11-29 17:17:42 +08:00
Yabo Hu 0d2c5002c3
[MSgraph]generate organization operation for msgraph client (#366)
* add swagger for Identity.DirectoryManagement

* generate client for organization

* fix generated code
2022-11-24 16:52:42 +08:00
Jin Lei b5ea848169
Add KeyStoreFile to AzureSession (#363) 2022-11-18 09:21:44 +08:00
Dingmeng Xue 9754feaabb
Add AutoMapper 6.2.2 (#364)
* Update assembly infor

* update license and version

* Add automapper 6.2.2
2022-11-17 17:00:08 +08:00
Vincent Dai 95df4e871a
Added function to log cmdlet execution info during test (#361) 2022-11-01 10:55:42 +08:00