You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support storing state in filesystem for local deploys (#11877)
* Support storing state in file system for local deployments
* Move IDeploymentStateManager initialization to DistributedApplicationBuilder
Co-authored-by: captainsafia <[email protected]>
* Implement PR feedback: config ordering, save all params, remove clearCache check, add logging
Co-authored-by: davidfowl <[email protected]>
* Clean up build errors
* Fix setting of execution mode
* Fix order for cached deployment test
* Update src/Aspire.Hosting/Publishing/Internal/FileDeploymentStateManager.cs
Co-authored-by: Copilot <[email protected]>
* Remove Console.WriteLine from FileDeploymentStateManager, use logger only
Co-authored-by: captainsafia <[email protected]>
* Address PR feedback: rename userSecrets to deploymentState, fix parameter names, remove pragma, change visibility
Co-authored-by: captainsafia <[email protected]>
* Save deployment state after initializing provisioning context, persist AllowResourceGroupCreation, ensure it's true in publish mode
Co-authored-by: captainsafia <[email protected]>
* Add back ClearCache check to LoadDeploymentState to skip loading when cache should be cleared
Co-authored-by: captainsafia <[email protected]>
* Add File.Exists check before emitting deployment state step and only emit save steps when ClearCache is false
Co-authored-by: captainsafia <[email protected]>
* Fix parameter saving to handle newly added parameters without throwing exceptions
Co-authored-by: davidfowl <[email protected]>
* Simplify SaveParametersToDeploymentStateAsync to use GetValueAsync and remove inner exception handling
Co-authored-by: davidfowl <[email protected]>
* Remove step reporting from deployment state saves, just save the state directly
Co-authored-by: davidfowl <[email protected]>
---------
Co-authored-by: Safia Abdalla <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: captainsafia <[email protected]>
Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Safia Abdalla <[email protected]>
Co-authored-by: Copilot <[email protected]>
awaitresourceTask.CompleteAsync($"Using existing deployment for {bicepResource.Name}",CompletionState.Completed,cancellationToken).ConfigureAwait(false);
varsubscriptionId=_options.SubscriptionId??thrownewMissingConfigurationException("An Azure subscription id is required. Set the Azure:SubscriptionId configuration value.");
78
78
@@ -103,19 +103,26 @@ public virtual async Task<ProvisioningContext> CreateProvisioningContextAsync(Js
103
103
if(string.IsNullOrEmpty(_options.ResourceGroup))
104
104
{
105
105
// Generate an resource group name since none was provided
106
-
// Create a unique resource group name and save it in user secrets
106
+
// Create a unique resource group name and save it in deployment state
0 commit comments