Commit Graph

1752 Commits

Author SHA1 Message Date
JinmingHu
62865323e3
Remove CopyFromUri (#3339) 2022-02-11 04:17:20 +00:00
JinmingHu
077d32ffff
New protocol layer for blob, datalake and queue generated by CodeGen (#3261)
* new protocol layer

* remove some [[deprecated]] to eliminate compiler warnings

* remove unused helper functions

* ut record

* revert [[deprecated]]

* fix typo
2022-02-11 11:02:51 +08:00
Azure SDK Bot
dc1ce53a34
Fixed the prefix of the target branch (#3338)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-02-10 16:00:47 -08:00
Azure SDK Bot
c905080138
Preprocess the target branch + Remove deleted files (#3337)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-02-09 17:58:16 -08:00
Azure SDK Bot
503a870c09
Add catch-all parameter to test resources script (#3334)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-02-09 14:37:17 -08:00
Azure SDK Bot
1b12863281
Add max value to DeleteAfter of 168 hours (#3327)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-02-09 13:09:16 -08:00
Azure SDK Bot
dc4309a65a
Increment package version after release of azure-identity (#3333) 2022-02-09 10:42:28 -08:00
Azure SDK Bot
a5a65bce1b
Print example docker commands after building stress image (#3332)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-02-08 17:30:51 -08:00
Azure SDK Bot
145359aecd
Sync eng/common directory with azure-sdk-tools for PR 2686 (#3331)
* Add common template for credscan step

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Added the source directory parameter

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update credscan.yml

* Update eng/common/pipelines/templates/steps/credscan.yml

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-02-08 12:57:43 -08:00
Larry Osterman
3642552d0b
Improve the quality of the WinHTTP transport error message. (#3330)
* Improved HTTP transport error message with Win32 error

* Use std::unique_ptr to manage lifetime of error message
2022-02-08 20:32:35 +00:00
Victor Vazquez
b728939fce
Feb 2022 identity release cl (#3319)
* feb 2022 release cl

* Update sdk/identity/azure-identity/CHANGELOG.md
2022-02-08 12:10:16 -08:00
Azure SDK Bot
8774c4ced6
Increment package version after release of azure-core (#3323) 2022-02-08 11:56:57 -08:00
Larry Osterman
60c075a64e
Base64::Decode throws std::runtime_error on failure. (#3305)
* Throw an exception when base64 decode has bogus inputs

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-02-08 09:34:00 -08:00
Anton Kolesnyk
16b4670a8c
Update Identity's dependency on Core 1.4.0-beta.1 features (#3325) 2022-02-08 09:41:54 +00:00
Azure SDK Bot
5157acbf6c
Sync eng/common directory with azure-sdk-tools for PR 2691 (#3324)
* Update prepare-release parameter documentation

* Apply suggestions from code review

Co-authored-by: Cala Zubair <60439897+czubair@users.noreply.github.com>

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Cala Zubair <60439897+czubair@users.noreply.github.com>
2022-02-07 13:53:09 -08:00
Anton Kolesnyk
53e90d81fb
Undo assert internal macro and headers (#3318) 2022-02-07 12:25:22 -08:00
George Arama
5290690be0
Storage src (#3304)
* before sync

* download latest version

* blobs and datalake

* shares and queues

* some cleanup

* for PR
2022-02-07 11:47:08 -08:00
Daniel Jurek
a97903770a
Skip release stage on private repository (#3322) 2022-02-04 23:15:16 -08:00
Victor Vazquez
7bd640ae55
Azure Core Feb2022 release changelog (#3307)
* Azure Core Feb2022 release changelog

* Update sdk/core/azure-core/CHANGELOG.md

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
2022-02-04 15:23:28 -08:00
Ahson Khan
031696179b
Delegate to RFE string ctor and move impl from header to src. (#3315)
* Removing the two param RFE ctor, there should be no callers

* Remove the two param RFE ctor from the source file.

* Fix-up unit test and add a changelog entry.

* Remove test that uses the removed ctor.

* Delegate to RFE string ctor and move impl from header to src.
2022-02-04 15:09:39 -08:00
Azure SDK Bot
7ae6d82a65
Sync eng/common directory with azure-sdk-tools for PR 2685 (#3317)
* Fixed the no IsPrerelease property issue and retry 3 times on API call.

* check null

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-02-04 14:20:19 -08:00
Azure SDK Bot
4e67da9775
Support github user namespaces for codespaces environments (#3316)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-02-04 15:04:23 -05:00
Azure SDK Bot
514080fa0c
Send authenticated request to query release tags (#3309)
Co-authored-by: Praveen Kuttappan <praveen.kuttappan@gmail.com>
2022-02-04 08:56:19 -08:00
Ahson Khan
9c79a0725d
Removing the two param RFE ctor, there should be no callers (#3215)
* Removing the two param RFE ctor, there should be no callers

* Remove the two param RFE ctor from the source file.

* Fix-up unit test and add a changelog entry.

* Remove test that uses the removed ctor.
2022-02-03 19:00:25 -08:00
Ahson Khan
40a3e34068
Add back azure_assert.hpp to core CMakeLists (#3311) 2022-02-03 17:49:54 -08:00
Ahson Khan
b338dd1c37
Fix the SDK Beta Vcpkg Registry information to use stable instead of GA (#3314) 2022-02-03 17:48:46 -08:00
Azure SDK Bot
dddfbaf296
Sync eng/common directory with azure-sdk-tools for PR 2673 (#3310)
* Fixed the failures from strict mode.

* Update Metadata-Helpers.ps1

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-02-03 16:44:57 -08:00
Anton Kolesnyk
679f5ecbd3
Update README with SDK Beta Vcpkg Registry information (#3306)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-02-03 12:23:12 -08:00
Azure SDK Bot
e7c81831e1
Sync eng/common directory with azure-sdk-tools for PR 2605 (#3302)
* Non stop on readme checking

* Print the right variable name

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-02-02 16:58:32 -08:00
Azure SDK Bot
213608b951
Sync eng/common directory with azure-sdk-tools for PR 2608 (#3303)
* Get ms alias from github identity.

* Update Update-DocsMsMetadata.ps1

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-02-02 10:54:58 -08:00
Victor Vazquez
0414dd3b15
restore uwp, only remove tests (#3300) 2022-02-01 11:05:56 -08:00
Anton Kolesnyk
c4e95dfcfc
Fix unit test compilation on UWP (#3298)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-01-31 18:43:37 -08:00
Anton Kolesnyk
62e3b32faa
Fix broken GitHub links (#3299)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-01-31 18:01:32 -08:00
Victor Vazquez
1cd14b196d
diable uwp gates (#3296) 2022-01-31 16:09:30 -08:00
Anton Kolesnyk
2aae6be7a3
Encapsulate getenv(), and make it work on UWP (#3275)
It all started with UWP. The [docs](https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=msvc-170) say: "`Environment variables are not available to UWP apps.`". And it truly won't work, I tried: linker error, the function is simply not present.

So, for a year or so, we were `ifdef`ing everything enivoronment-related: console logger, environment credential, managed identity credential.

And then just recently we wanted to enable our CI for UWP, including tests and samples. And it required to do more ifdefs (in vcpkg, we don't build samples or tests, so that problem did not exist).

It just became more messy. Especially in samples - you can see how we would disable warning with `#pragma warning(disable : 4996)` or defining `_CRT_SECURE_NO_WARNINGS` already, but now came UWP, so we would have to add comment that `getenv()` is not available and make the sample compilation to either fail with clear message, or throw an exception. Plus we would have to detect that we are being compiled on UWP, which also adds visual clutter for reader. You can see how such an irrelevant (for a sample) thing as `getenv` was consuming more and more lines of sample code and reader's attention.

But then! I read docs on more APIs for UWP. And I noticed that on .NET you can read environment variables. So I went and checked Win32 API docs for [GetEnvironmentVariable()](https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getenvironmentvariable) - it says: "`Minimum supported client: ... UWP apps`".

**GetEnvironmentVariable() works on UWP!**
And so does `SetEnvironmentVariable()` (our tests use it, which means we can make all of them work and execute for UWP).

That's good news, but now it would probably be more code: it usually takes more lines to invoke WinAPI, it is no more an one-liner to call `getenv()/setenv()`. So, I encapsulated that into `Azure::Core::_internal::Environment::GetVariable()` and `SetVariable()`. You can see how much less ifdefs is in our code now. Not to mention it works on UWP!

Per team request, that API is SDK-internal. Samples use their own mini-helper project, `get-env-helper` that makes is so that `getenv()` works naturally on Linux and macOS, compiles without warnings and works on Win32, and compiles and works on UWP (using `GetEnvironmentStringsA()`)

If it was for me, I would just make `Azure::Core::Environment::GetVariable()` public and simplify even further, I think it would be beneficial for sample readers (you can see that extra `get-env-helper` stuff adds just a little more visual clutter, compared to nothing). But I can see reasons against that, why team did not want to do it.
2022-01-29 08:22:33 +00:00
Azure SDK Bot
b265366d30
Update matrix doc header titles for replace/modify/append (#3292)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-28 18:48:12 -05:00
Azure SDK Bot
acdd028d56
remove greedy suffix on link check (#3276)
Co-authored-by: Dane Walton <dawalton@microsoft.com>
2022-01-26 13:00:24 -08:00
Azure SDK Bot
97d2397cff
fix incidentally added path addition (#3274)
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2022-01-25 16:06:57 -08:00
George Arama
e18c6ce6fc
keys source build (#3251)
* keys source build

* merge from main, apply changes
2022-01-25 15:38:55 -08:00
George Arama
1b722bdb4d
Switch secrets away from lambdas (#3264)
* first pass

* LROs

* final

* some quick changes

* constructor order

* formats

* comment update
2022-01-25 14:27:44 -08:00
George Arama
d9142e80b2
secrets build from source (#3250)
* secrets build

* typo
2022-01-25 14:27:04 -08:00
George Arama
71d4b87bb0
fix build (#3270)
* fix build

* add build samples to ci
2022-01-25 14:26:10 -08:00
Anton Kolesnyk
e3b748c944
Disable cspell for Base64 values (#3273)
* Disable cspell for Base64 values

* Remove unneccessary change

* URL

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-01-25 12:10:33 -08:00
Azure SDK Bot
1a83513ff1
Syncing eng/common (#3271)
Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-01-24 16:30:35 -08:00
Azure SDK Bot
f15372a7d1
Sync eng/common directory with azure-sdk-tools for PR 2581 (#3272) 2022-01-24 15:52:37 -08:00
Azure SDK Bot
dd40de0606
Sync eng/common directory with azure-sdk-tools for PR 2578 (#3268)
* excluding duplicated env:USER in image tag

* NIT

* removing default repo name

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-01-21 16:57:41 -08:00
Azure SDK Bot
118e598e3e
Sync eng/common directory with azure-sdk-tools for PR 2596 (#3267)
- Fix bug in Add-ReleaseLease helper script
- Enable better local logging for handling token
- Enable strict mode to help catch issues like this in the future
2022-01-21 15:19:23 -08:00
George Arama
88f234d976
build source identity (#3244)
* build source identity

* pipeline

* PR comments

* PR comments

* DFETCH cspell

* EOL
2022-01-21 13:13:15 -08:00
Azure SDK Bot
bd4984015f
updating to target test-proxy that only gets filename from body of /start request (#3265)
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2022-01-21 12:57:35 -08:00
Azure SDK Bot
df691195da
Only fetch provision application oid via API if not supplied (#3266)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-21 12:03:23 -08:00