19 references to _options
Aspire.Hosting.Azure (19)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (19)
48
(!string.IsNullOrEmpty(
_options
.Location) && !string.IsNullOrEmpty(
_options
.SubscriptionId)))
82
while (
_options
.Location == null ||
_options
.SubscriptionId == null)
136
_options
.Location = result.Data[LocationName].Value;
137
_options
.SubscriptionId = result.Data[SubscriptionIdName].Value;
138
_options
.ResourceGroup = result.Data[ResourceGroupName].Value;
139
_options
.AllowResourceGroupCreation = true; // Allow the creation of the resource group if it does not exist.
144
azureSection["Location"] =
_options
.Location;
145
azureSection["SubscriptionId"] =
_options
.SubscriptionId;
146
azureSection["ResourceGroup"] =
_options
.ResourceGroup;
192
var subscriptionId =
_options
.SubscriptionId ?? throw new MissingConfigurationException("An Azure subscription id is required. Set the Azure:SubscriptionId configuration value.");
210
if (string.IsNullOrEmpty(
_options
.Location))
218
if (string.IsNullOrEmpty(
_options
.ResourceGroup))
230
resourceGroupName =
_options
.ResourceGroup;
231
createIfAbsent =
_options
.AllowResourceGroupCreation ?? false;
238
var location = new AzureLocation(
_options
.Location);
285
if (!string.IsNullOrWhiteSpace(
_options
.ResourceGroupPrefix))
287
prefix =
_options
.ResourceGroupPrefix;