Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.26k stars 753 forks source link

Support deploying to other clouds in Deploy Pane #15635

Closed anthony-c-martin closed 2 days ago

anthony-c-martin commented 2 days ago

Closes #14834

Microsoft Reviewers: Open in CodeFlow
github-actions[bot] commented 2 days ago

Test this change out locally with the following install scripts (Action run 11938780782)

VSCode - Mac/Linux ```sh bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 11938780782 ``` - Windows ```powershell iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 11938780782" ```
Azure CLI - Mac/Linux ```sh bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 11938780782 ``` - Windows ```powershell iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 11938780782" ```
github-actions[bot] commented 2 days ago

Dotnet Test Results

    75 files   -     42      75 suites   - 42   29m 13s ⏱️ - 12m 52s 11 415 tests  -     25  11 415 ✅  -     23  0 💤 ±0  0 ❌  - 2  26 561 runs   - 13 276  26 561 ✅  - 13 274  0 💤 ±0  0 ❌  - 2 

Results for commit 63c6846b. ± Comparison against base commit 290c7e23.

This pull request removes 1841 and adds 630 tests. Note that renamed tests count towards both. ``` nestedProp1: 1 nestedProp2: 2 prop1: true prop2: false 1 2 \$'") prop1: true prop2: false … ``` ``` Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000 �Ի �0\u0014\u0006��>E�\u0003��6U��"��\u0000�=b���T(��n:�K�K/���\u000c9��$�!�޴[0\u0019Ԗp�xH�ب\u0013I�;�aR#��(�Z)�\u0010nG���6�v�̱�\u000f�16M^@´�T �8\u0011��J땫�C5�ƕi�I^fВ�����bh����\u0006|�o�+��*$r\u0000ӜJ�\��nDx�L�y�\u001f88��V�6���8B\u001dl��\-<����<ϛ�\u000b��.�\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000 ��\u000fH��HMLI-*�3274��c�60\u0000\u00023\u0013\u0013�� `hb�`h\u000e\u0003\u0006\u000c\u0006榦F\u000c\u000c \u0015Tw \u0016PZ\�X\u0004t =�\u001a���B!�$37�����������H�\u0018\u001c)f\@�d\r�� \u0005�%\u0019��y)�\u0015zY��y 幸�\u000f�7G\u0001\u000e��?�\u0005\u0011��o`d�\u0000,\u0003\u000c͍\u000cLLM����\u0014X"0(�%O���_���\u0017����\u0012�\u0015��d�\u0000,�\u0007�M�`\u0014��Q0 h\u000f\u0000j 8�\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000 ��� �0\u000c\u0007�}�=A������\u001e}��\u0003?X'nÁ��v\u0007�Æ�� �wl\u0008MS�:ݺv��}~��\u00114�Vc�`I�{�AF��\u0002 ���J��'��T���Q���\u0007�U��c�g(�\u0000[˨-��\u0018\u0017��\u001b�arq�!k�ٗ7�OU黆b�a�F����[+��\u0000��\u0004�\u00001I�?\u0012��O��?���1�\u0004Q\u0014E�\u001c���'P\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003�Խ �0\u0010\u0007��>E�\u0003�$M�V��"��\u0000�=�bki*\u0004�w7\u001dĥť\u001f�����]8�!뽶[�94��$�k��F�H���\u000e\u0013 1�F\u0011U2R\u0008a;�$=�Ս\u001be�^?��X�E )S!�2�$n#,�㕻ˆ�X�kݞӢ�����U]y9T��3�\u0001��M��[�i(��\u0003��T\u0008�\u0010���.��d�������\u0002[C�B���\u0008M��'}5�\z6��Amblփ�\u001d� e\u0013��u���ػ�\u001e\u0006;(�8\u001d��c\u0013HJ��xo�]n�yUK4&�����4���\u0000H\u000b�\u0017%\u0014�Z\u000b\u0011��o2��\u001b[�U�����#ۜ�<\u0003NP� j��\u0012��\u001b_:L� ��攵�����K]�����_�����\u000b~kƧ�+�\u0002��Q\u0011�@��_$����c� � \u0008�5<\u0001i��T\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003���\u000b�0\u0014\u0007��+�?`n�mk���CFX\u0010t��B\u0006Z���?�c__DisplayClass4_0.<g__DownloadManifestInternalAsync|0>d.MoveNext() in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 44 --- End of stack trace from previous location --- at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, IOciArtifactReference artifactReference) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 51 at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.<>c__DisplayClass4_0.<g__DownloadManifestInternalAsync|0>d.MoveNext() in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 44 --- End of stack trace from previous location --- at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, IOciArtifactReference artifactReference) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 63 at Bicep.Core.Registry.OciArtifactRegistry.TryRestoreArtifactAsync(RootConfiguration configuration, OciArtifactReference reference) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/OciArtifactRegistry.cs:line 499,[(BCP192, Error, Unable to restore the artifact with reference "br:unknown.registry.azurecr.io/bicep/extensions/az:0.0.0-placeholder": Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)))]) Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Repository_not_found_in_registry (ArtifactRegistryAddress { RegistryAddress = unknown.registry.azurecr.io, RepositoryPath = bicep/extensions/az, ExtensionVersion = 0.0.0-placeholder },System.AggregateException: Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.<>c__DisplayClass4_0.<g__DownloadManifestInternalAsync|0>d.MoveNext() in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 44 --- End of stack trace from previous location --- at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, IOciArtifactReference artifactReference) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 51 at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.<>c__DisplayClass4_0.<g__DownloadManifestInternalAsync|0>d.MoveNext() in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 44 --- End of stack trace from previous location --- at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, IOciArtifactReference artifactReference) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 63 at Bicep.Core.Registry.OciArtifactRegistry.TryRestoreArtifactAsync(RootConfiguration configuration, OciArtifactReference reference) in D:\a\bicep\bicep\src\Bicep.Core\Registry\OciArtifactRegistry.cs:line 499,[(BCP192, Error, Unable to restore the artifact with reference "br:unknown.registry.azurecr.io/bicep/extensions/az:0.0.0-placeholder": Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)))]) … ```