microsoft / microsoft/sql-server-samples
DataSyncLog Runbook without specify SyncGroup
Nessuno ha ancora preso questa issue.
- Lingua principale
- PowerShell
- Stelle
- 11.2k
- Fork
- 9.1k
- Merge medio
- 2g 7h
- PR unite (30g)
- 14
Descrizione
In sql-server-samples/samples/features/sql-data-sync/DataSyncLogPowerShellRunbook.ps1 when I don't specify a SyncGroup and it tries to run the following line in testing environment.
$SyncGroupName = Get-AzureRmSqlSyncGroup -ResourceGroupName $ResourceGroup -ServerName $Server -DatabaseName $Database | select -ExpandProperty SyncGroupName
I run into the below exception. I'm not a PS expert, but this is defined I believe. https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/get-azurermsqlsyncgroup?view=azurermps-4.4.0
Get-AzureRmSqlSyncGroup : The term 'Get-AzureRmSqlSyncGroup' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:165 char:38
+ $SyncGroupName = Get-AzureRmSqlSyncGroup -Resourc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-AzureRmSqlSyncGroup:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da sql-server-samples/samples/features/sql-data-sync/DataSyncLogPowerShellRunbook.ps1 intorno alla riga 165, quindi esamina la documentazione collegata di Get-AzureRmSqlSyncGroup. Esegui il runbook nello scenario di test segnalato senza specificare una SyncGroup e analizza l'eccezione relativa al comando mancante. Il lavoro è completato quando quello scenario non fallisce più durante la ricerca della SyncGroup.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, powershell, sql
- Ambito
- cloud, databases, devops
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100