Azure / Azure/azure-powershell
Extended Service Creation and Swapping
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### Description
I am trying to create an extended classic service (stg and prod) and then have them swapped. Using the below script to create the service and then microsoft provided script to swap. But on running the swap I am getting error saying the swappableId is not set. I am using keyvault for certificate so went with this script.
New-AzCloudService `
-Name ContosoCS `
-ResourceGroupName ContosOrg `
-Location EastUS `
-ConfigurationFile C:\files\CS.cscfg `
-DefinitionFile C:\files\CS.csdef `
-PackageFile C:\CS.cspkg `
-StorageAccount ContosoStorAcc `
-KeyVaultName ContosoKV
Error:
error": {
"code": "SwappableCloudServicePropertyNotSet",
"message": "SwappableCloudService property in networkProfile for cloudService
In the create script I dont see a parameter to include swappableId or the network profile. Is there anyway to include this in csfg file or add the profile via script?
Please advise.
### Script or Debug output
_No response_
### Environment data
_No response_
### Module versions
_No response_
### Error output
_No response_
Contributor guide
Research direction
Start with the New-AzCloudService command shown in the issue and compare it with the Microsoft-provided swap script. Investigate whether swappableId or the network profile can be supplied through the command or the referenced CS.cscfg file; done means identifying a supported configuration or confirming that the command lacks this capability.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100