Lombiq/Infrastructure-Scripts

Deprecation warning when using Copy-AzureWebAppSqlDatabase (INFRA-129)

Closed this issue · 6 comments

When running Copy-AzureWebAppSqlDatabase there's a deprecation warning coming from the Set-AzSqlDatabase cmdlet (in a GitHub Actions workflow) I get the below warning:

WARNING: Upcoming breaking changes in the cmdlet 'Set-AzSqlDatabase' :

- The output type 'Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel' is changing
- The following properties in the output type are being deprecated : 'BackupStorageRedundancy'
- The following properties are being added to the output type : 'CurrentBackupStorageRedundancy' 'RequestedBackupStorageRedundancy'
- The change is expected to take effect from the version : '3.0.0'

Jira issue

AFAIR it's not actionable for us as we're not using those properties.

Great then. I suppose these will also go away once we (can) update the cmdlet.

It's up to the GHA runner team to update, because they pre-install Az PS, but version 3.0.0 actually refers to the Azure SDK itself that Az PS is using under the hood, so it's even further removed from us.

Ah, I see.

Checked recent runs of our workflows that use this command + did my own testing in a throw-away repository and locally. I have version 4.4.0 of Az.Sql installed on my machine and it still shows the warning, but the latest one (4.10.0) that we install on the runners doesn't.

Ah, nice!