Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image-copy] update to version 0.2.1 #669

Merged
merged 40 commits into from
May 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1df54d2
[image-copy] update to version 0.2.0
tamirkamara May 3, 2019
45bc85f
Merge branch 'master' into master
tamirkamara May 3, 2019
5f7e499
[image-copy] update index for version 0.2.0
tamirkamara May 3, 2019
859275d
switch to 2019-04-01 api version and enable windows agent pool (#612)
Apr 4, 2019
11e1faf
Policies should be global, remove location parameter and default it (…
digavino Apr 4, 2019
ac02098
bug fixes: missing service principal and network profile parameter va…
Apr 8, 2019
c34685c
Pin max CLI version. (#630)
tjprescott Apr 8, 2019
086f293
Update front door index to 0.1.5 (#632)
pichandwork Apr 8, 2019
bfeef69
Fixes #629. (#631)
tjprescott Apr 9, 2019
13567f3
Update index.json. (#640)
adewaleo Apr 11, 2019
6ce4992
Add new version of aks-preview in index.json (#634)
norshtein Apr 11, 2019
d6fae43
Azure Event Grid 0.4.1 (#633)
ahamad-MS Apr 11, 2019
cd6dd47
[aks-preview]: fix python3-only super() syntax (#641)
mboersma Apr 11, 2019
370e770
[storage-preview] release azcopy 10.0.9 (#639)
limingu Apr 12, 2019
f2c1635
[storage-preview] pulish 0.2.4 (#642)
limingu Apr 12, 2019
202c6a9
App Insights control plane (#600)
alexeldeib Apr 16, 2019
bc26502
Remove 'preview' from Dev Spaces (#638)
amsoedal Apr 17, 2019
bac732e
Update PULL_REQUEST_TEMPLATE.md (#645)
tjprescott Apr 17, 2019
e194626
setting default vm size for windows (#637)
Apr 17, 2019
51e7520
SQL: make "up" command work end to end (#644)
yugangw-msft Apr 17, 2019
dff864b
Update requirements.txt
tjprescott Apr 17, 2019
ad6df16
Update to RP standard release 3.5 (#29) (#627)
leonardbf Apr 18, 2019
8557389
Update readme to reflect the latest SQL DB status
yugangw-msft Apr 22, 2019
80b229a
SQL up: update a typo
yugangw-msft Apr 23, 2019
0f5de3d
Update index.json for backwards compatability for Dev Spaces (#648)
amsoedal Apr 24, 2019
72d8b8a
0.5.0 release for Azure DevOps (#653)
gauravsaralMs Apr 25, 2019
905b28e
[AKS]customizing node resource group (#636)
zqingqing1 Apr 25, 2019
c9f4475
Onboard Azure Machine Learning Service CLI (#655)
gogowings Apr 27, 2019
5cfe913
[storage-preview] pulish 0.2.5 (#657)
limingu Apr 29, 2019
8411263
[AKS] Add Azure policy addon (#651)
robbiezhang Apr 29, 2019
5f7cf2f
0.6.0 release for Azure DevOps (#660)
gauravsaralMs Apr 30, 2019
017ef47
Upgrade AppConfig extension version from 0.4.0 to 0.5.0 (#661)
recao Apr 30, 2019
5b67eb9
Update service principal secret for windows nodes (#662)
gtracer May 1, 2019
c5bcd93
Release storage-preview 0.2.5 (#663)
limingu May 1, 2019
ecc5db9
Remove extra + (#664)
limingu May 1, 2019
65ca343
0.7.0 release for Azure DevOps (#666)
gauravsaralMs May 2, 2019
d81b05d
remove botservice from index.json (#667)
stevengum May 2, 2019
1dbccaa
Merge branch 'master' of https://github.com/tamirkamara/azure-cli-ext…
tamirkamara May 3, 2019
3f9f200
[image-copy] fix temp_rg default valuet
tamirkamara May 3, 2019
be9ee57
Merge branch 'master' into master
yugangw-msft May 6, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/image-copy/azext_imagecopy/create_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

import datetime
import time
from azext_imagecopy.cli_utils import run_cli_command, prepare_cli_command
from knack.util import CLIError

from knack.util import CLIError
from knack.log import get_logger

from azext_imagecopy.cli_utils import run_cli_command, prepare_cli_command

logger = get_logger(__name__)

STORAGE_ACCOUNT_NAME_LENGTH = 24
Expand Down
15 changes: 8 additions & 7 deletions src/image-copy/azext_imagecopy/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@

from multiprocessing import Pool

from knack.util import CLIError
from knack.log import get_logger

from azext_imagecopy.cli_utils import run_cli_command, prepare_cli_command
from azext_imagecopy.create_target import create_target_image

from knack.util import CLIError
from knack.log import get_logger
logger = get_logger(__name__)


# pylint: disable=too-many-statements
# pylint: disable=too-many-locals
def imagecopy(source_resource_group_name, source_object_name, target_location,
target_resource_group_name, temporary_resource_group_name, source_type='image',
cleanup='false', parallel_degree=-1, tags=None, target_name=None,
target_resource_group_name, temporary_resource_group_name='image-copy-rg',
source_type='image', cleanup='false', parallel_degree=-1, tags=None, target_name=None,
target_subscription=None, export_as_snapshot='false', timeout=3600):

# get the os disk id from source vm/image
Expand Down Expand Up @@ -82,10 +83,10 @@ def imagecopy(source_resource_group_name, source_object_name, target_location,

# Get SAS URL for the snapshotName
logger.warn(
"Getting sas url for the source snapshot with timeout seconds: %d", timeout)
"Getting sas url for the source snapshot with timeout: %d seconds", timeout)
if timeout < 3600:
logger.warn("Timeout should be greater than 3600")
raise CLIError('Inavlid Timeout')
logger.error("Timeout should be greater than 3600 seconds")
raise CLIError('Invalid Timeout')

cli_cmd = prepare_cli_command(['snapshot', 'grant-access',
'--name', source_os_disk_snapshot_name,
Expand Down
2 changes: 1 addition & 1 deletion src/image-copy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from codecs import open
from setuptools import setup, find_packages

VERSION = "0.0.9"
VERSION = "0.2.1"

CLASSIFIERS = [
'Development Status :: 4 - Beta',
Expand Down
8 changes: 4 additions & 4 deletions src/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,8 @@
],
"image-copy-extension": [
{
"downloadUrl": "https://files.pythonhosted.org/packages/0b/3a/c8e02e8af6941fe55ed55d6011c15a60ba8ce3ddd52a34ae7c2c5043958f/image_copy_extension-0.0.9-py2.py3-none-any.whl",
"filename": "image_copy_extension-0.0.9-py2.py3-none-any.whl",
"downloadUrl": "https://files.pythonhosted.org/packages/d9/45/3d5b20c461392a84268a7b655ee32c98338daadc060060efeffd7ef3d76f/image_copy_extension-0.2.1-py2.py3-none-any.whl",
"filename": "image_copy_extension-0.2.1-py2.py3-none-any.whl",
"metadata": {
"azext.minCliCoreVersion": "2.0.24",
"classifiers": [
Expand Down Expand Up @@ -1279,9 +1279,9 @@
"metadata_version": "2.0",
"name": "image-copy-extension",
"summary": "Support for copying managed vm images between regions",
"version": "0.0.9"
"version": "0.2.1"
},
"sha256Digest": "7f77f6c2ba940fb64ff157555ee26cc688bd4b5f8b3b5b3fef738158a16ac7b1"
"sha256Digest": "1d9eab829c63e601fa93e616cc4e5d73946fa225aa8e5ffd84a98d11cdc4138b"
}
],
"interactive": [
Expand Down